From 02708daac5a17549752b1d5416bbafa59967ffa2 Mon Sep 17 00:00:00 2001 From: Naoko Tanibata Date: Fri, 15 Feb 2019 22:58:40 +0900 Subject: 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 --- waltham-transmitter/transmitter-plugin/plugin.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit 1.2.3-korg