diff options
author | Naoko Tanibata <tnaoko@jp.adit-jv.com> | 2019-02-15 22:58:40 +0900 |
---|---|---|
committer | Naoko Tanibata <tnaoko@jp.adit-jv.com> | 2019-02-15 22:58:40 +0900 |
commit | 02708daac5a17549752b1d5416bbafa59967ffa2 (patch) | |
tree | 943996c65aca6ee94ebdda3a69194bde095e4e2a /waltham-transmitter | |
parent | adf1ab215d4b8cef2ab4220e295b206ce7f14b10 (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>
Diffstat (limited to 'waltham-transmitter')
-rw-r--r-- | waltham-transmitter/transmitter-plugin/plugin.c | 2 |
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; } |