summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2016-06-09 19:11:07 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-09 22:39:25 -0300
commit2d2e57eccdc3ca2f87cb5424f693b68e6bfb533c (patch)
tree8ea2235beee2ecc5730a2719bd1797bdfcd47480
parent46843551c0af0b58c67cb2f998ece53a32437748 (diff)
eina: Smudge magic value on promise deletion
-rw-r--r--src/lib/eina/eina_promise.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/eina/eina_promise.c b/src/lib/eina/eina_promise.c
index 36be3a279b..1006f845ec 100644
--- a/src/lib/eina/eina_promise.c
+++ b/src/lib/eina/eina_promise.c
@@ -243,6 +243,9 @@ _eina_promise_del(_Eina_Promise_Default_Owner* promise)
243 &_eina_promise_free_progress_notify_callback_node); 243 &_eina_promise_free_progress_notify_callback_node);
244 _eina_promise_free_callback_list(&promise->promise.cancel_callbacks, 244 _eina_promise_free_callback_list(&promise->promise.cancel_callbacks,
245 &_eina_promise_free_cancel_callback_node); 245 &_eina_promise_free_cancel_callback_node);
246
247 EINA_MAGIC_SET(&promise->owner_vtable, 0xdeadbeef);
248 EINA_MAGIC_SET(&promise->promise.vtable, 0xbeefdead);
246 free(promise); 249 free(promise);
247} 250}
248 251