transmitter: Free the allocated memory 43/20143/1
authorNaoko Tanibata <tnaoko@jp.adit-jv.com>
Fri, 15 Feb 2019 13:58:40 +0000 (22:58 +0900)
committerNaoko Tanibata <tnaoko@jp.adit-jv.com>
Fri, 15 Feb 2019 13:58:40 +0000 (22:58 +0900)
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>
waltham-transmitter/transmitter-plugin/plugin.c

index 3a61011..92510c2 100644 (file)
@@ -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;
        }