summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2020-02-25 12:34:18 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2020-02-25 16:43:32 +0100
commit03ed41517cb39e33807822fd48255e4393970e47 (patch)
treee6190639ec8cd28a2a9c1781ae0efb478dd68505
parente638dbd8ead6ccb1c8e05735c3f186383f2e613e (diff)
exactness: injector: free local buffers
Make sure we free local resources before we break. CID: 1419845 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11414
-rw-r--r--src/bin/exactness/injector.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/exactness/injector.c b/src/bin/exactness/injector.c
index 8b73ff5270..68bc4b0b60 100644
--- a/src/bin/exactness/injector.c
+++ b/src/bin/exactness/injector.c
@@ -175,6 +175,7 @@ _feed_event(Exactness_Action_Type type, unsigned int n_evas, void *data)
175 STORE_INT(tmp, t->direction); 175 STORE_INT(tmp, t->direction);
176 STORE_INT(tmp, t->z); 176 STORE_INT(tmp, t->z);
177 eina_debug_session_send(_session, _cid, _mouse_wheel_op, buf, len); 177 eina_debug_session_send(_session, _cid, _mouse_wheel_op, buf, len);
178 free(buf);
178 break; 179 break;
179 } 180 }
180 case EXACTNESS_ACTION_MULTI_DOWN: 181 case EXACTNESS_ACTION_MULTI_DOWN:
@@ -202,6 +203,7 @@ _feed_event(Exactness_Action_Type type, unsigned int n_evas, void *data)
202 eina_debug_session_send(_session, _cid, 203 eina_debug_session_send(_session, _cid,
203 type == EXACTNESS_ACTION_MULTI_DOWN ? _multi_down_op : _multi_up_op, 204 type == EXACTNESS_ACTION_MULTI_DOWN ? _multi_down_op : _multi_up_op,
204 buf, len); 205 buf, len);
206 free(buf);
205 break; 207 break;
206 } 208 }
207 case EXACTNESS_ACTION_MULTI_MOVE: 209 case EXACTNESS_ACTION_MULTI_MOVE:
@@ -222,6 +224,7 @@ _feed_event(Exactness_Action_Type type, unsigned int n_evas, void *data)
222 STORE_DOUBLE(tmp, t->fx); 224 STORE_DOUBLE(tmp, t->fx);
223 STORE_DOUBLE(tmp, t->fy); 225 STORE_DOUBLE(tmp, t->fy);
224 eina_debug_session_send(_session, _cid, _multi_move_op, buf, len); 226 eina_debug_session_send(_session, _cid, _multi_move_op, buf, len);
227 free(buf);
225 break; 228 break;
226 } 229 }
227 case EXACTNESS_ACTION_KEY_DOWN: 230 case EXACTNESS_ACTION_KEY_DOWN:
@@ -246,6 +249,7 @@ _feed_event(Exactness_Action_Type type, unsigned int n_evas, void *data)
246 eina_debug_session_send(_session, _cid, 249 eina_debug_session_send(_session, _cid,
247 type == EXACTNESS_ACTION_KEY_DOWN ? _key_down_op : _key_up_op, 250 type == EXACTNESS_ACTION_KEY_DOWN ? _key_down_op : _key_up_op,
248 buf, len); 251 buf, len);
252 free(buf);
249 break; 253 break;
250 } 254 }
251 case EXACTNESS_ACTION_TAKE_SHOT: 255 case EXACTNESS_ACTION_TAKE_SHOT:
@@ -265,6 +269,7 @@ _feed_event(Exactness_Action_Type type, unsigned int n_evas, void *data)
265 STORE_STRING(tmp, t->wdg_name); 269 STORE_STRING(tmp, t->wdg_name);
266 STORE_STRING(tmp, t->event_name); 270 STORE_STRING(tmp, t->event_name);
267 eina_debug_session_send(_session, _cid, _efl_event_op, buf, len); 271 eina_debug_session_send(_session, _cid, _efl_event_op, buf, len);
272 free(buf);
268 break; 273 break;
269 } 274 }
270 case EXACTNESS_ACTION_CLICK_ON: 275 case EXACTNESS_ACTION_CLICK_ON:
@@ -276,6 +281,7 @@ _feed_event(Exactness_Action_Type type, unsigned int n_evas, void *data)
276 _printf(2, "%s %s\n", __func__, "Click On"); 281 _printf(2, "%s %s\n", __func__, "Click On");
277 STORE_STRING(tmp, t->wdg_name); 282 STORE_STRING(tmp, t->wdg_name);
278 eina_debug_session_send(_session, _cid, _click_on_op, buf, len); 283 eina_debug_session_send(_session, _cid, _click_on_op, buf, len);
284 free(buf);
279 break; 285 break;
280 } 286 }
281 case EXACTNESS_ACTION_STABILIZE: 287 case EXACTNESS_ACTION_STABILIZE: