From e14a11d9fa93c0958d3ae0892841be10b0f5e814 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Tue, 6 Sep 2016 22:12:23 +0900 Subject: [PATCH] eo base - fix free of all callbacks to set callbacks to NULL we set count to 0 but not ptr to NULL. this we must do after free so when other destructors run dont go relying on this ptr to be valid! --- src/lib/eo/eo_base_class.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c index fd362ec013..cf944507d8 100644 --- a/src/lib/eo/eo_base_class.c +++ b/src/lib/eo/eo_base_class.c @@ -945,6 +945,7 @@ _eo_callback_remove_all(Efl_Object_Data *pd) _eo_callback_free(pd->callbacks[i]); free(pd->callbacks); + pd->callbacks = NULL; pd->callbacks_count = 0; }