summaryrefslogtreecommitdiffstats
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-02-15 22:58:40 +0900
commit02708daac5a17549752b1d5416bbafa59967ffa2 (patch)
tree943996c65aca6ee94ebdda3a69194bde095e4e2a
parentadf1ab215d4b8cef2ab4220e295b206ce7f14b10 (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>
-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;
}