summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-11-07 17:34:30 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-11-07 17:36:57 +0900
commiteb67a08c8daff89e88063a4d06dbf07a6bac3379 (patch)
tree3eddfdb93da9f7b9063d4d201d48416f18ce3675 /src/lib/eo/eo.c
parent784411800baa93a5a8a1ebcf7d76ecf4c8969e48 (diff)
eo - fix freeq usage to not use freeq for a vtable cleaning
the freeq can't allow things to access the content of the pointer because the content canbe written over by canary handling qhen submitted to the freeq. clear it inline then just submit the final pointer to the freeq. @fix
Diffstat (limited to '')
-rw-r--r--src/lib/eo/eo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 91a62fe944..2cf9cabe6b 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -1188,7 +1188,7 @@ static void
1188_vtable_free(Eo_Vtable *vtable) 1188_vtable_free(Eo_Vtable *vtable)
1189{ 1189{
1190 if (!vtable) return; 1190 if (!vtable) return;
1191 eina_freeq_ptr_main_add(vtable, EINA_FREE_CB(_vtable_func_clean_all), 0); 1191 _vtable_func_clean_all(vtable);
1192 eina_freeq_ptr_main_add(vtable, free, sizeof(*vtable)); 1192 eina_freeq_ptr_main_add(vtable, free, sizeof(*vtable));
1193} 1193}
1194 1194