summaryrefslogtreecommitdiffstats
path: root/waltham-transmitter
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-02-18 11:29:21 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2019-02-18 11:29:21 +0000
commit8348d4abf007f26a33f7633bc162ea415081062a (patch)
treec655c75142c2410386b6f779eb4e7ee2a9a9006a /waltham-transmitter
parent3f28f47c6d21a708d5ca1d8041a143fce23a574b (diff)
parent02708daac5a17549752b1d5416bbafa59967ffa2 (diff)
Merge "transmitter: Free the allocated memory"
Diffstat (limited to 'waltham-transmitter')
-rw-r--r--waltham-transmitter/transmitter-plugin/plugin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/waltham-transmitter/transmitter-plugin/plugin.c b/waltham-transmitter/transmitter-plugin/plugin.c
index 3a61011..92510c2 100644
--- a/waltham-transmitter/transmitter-plugin/plugin.c
+++ b/waltham-transmitter/transmitter-plugin/plugin.c
@@ -151,6 +151,8 @@ transmitter_surface_gather_state(struct weston_transmitter_surface *txs)
wthp_surface_commit(txs->wthp_surf);
wth_connection_flush(remote->display->connection);
+ free(data);
+ data=NULL;
txs->attach_dx = 0;
txs->attach_dy = 0;
}