summaryrefslogtreecommitdiffstats
path: root/waltham-transmitter/transmitter-plugin
diff options
context:
space:
mode:
authorNaoko Tanibata <tnaoko@jp.adit-jv.com>2019-02-15 22:58:40 +0900
committerNaoko Tanibata <tnaoko@jp.adit-jv.com>2019-07-16 08:44:53 +0000
commit40776662b7a5e750c562b9553bf3525b6401fc9e (patch)
tree60fcfc95870ee869789ad84cfd76cfaac9e680dc /waltham-transmitter/transmitter-plugin
parent8f540a1b80bb64b1825993ef889be47c4c39625c (diff)
transmitter: Free the allocated memory
Free the allocated memory explicitly after it's used. Bug-AGL: SPEC-2058 Change-Id: Idad82117d9d9a415513cdda444ee253e9d2ec317 Signed-off-by: Naoko Tanibata <tnaoko@jp.adit-jv.com> (cherry picked from commit 02708daac5a17549752b1d5416bbafa59967ffa2)
Diffstat (limited to 'waltham-transmitter/transmitter-plugin')
-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;
}