summaryrefslogtreecommitdiff
path: root/src/lib/evas/include
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2018-06-12 15:19:12 +0100
committerAlastair Poole <netstar@gmail.com>2018-06-12 15:19:12 +0100
commit8e64746a44d94d54eb25c4a20837706130172e21 (patch)
treeb443578d6a6c2dab50b988d6c52b8ef3596029cd /src/lib/evas/include
parentf4851d311fdc9f5f1cffcc29b0a4916e3a7189b3 (diff)
ecore_evas: fix crash on free of smart data.
pd is NULL here, adds a check before attempt to read from pd. @fix T6974
Diffstat (limited to 'src/lib/evas/include')
-rw-r--r--src/lib/evas/include/evas_inline.x2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/include/evas_inline.x b/src/lib/evas/include/evas_inline.x
index 74ed8bbd01..b3f1ae688a 100644
--- a/src/lib/evas/include/evas_inline.x
+++ b/src/lib/evas/include/evas_inline.x
@@ -359,7 +359,7 @@ static inline void
359_evas_wrap_del(Evas_Object **eo, Evas_Object_Protected_Data *pd) 359_evas_wrap_del(Evas_Object **eo, Evas_Object_Protected_Data *pd)
360{ 360{
361 if (!*eo) return ; 361 if (!*eo) return ;
362 if (pd->legacy.ctor) evas_object_del(*eo); 362 if (pd && pd->legacy.ctor) evas_object_del(*eo);
363 else efl_del(*eo); 363 else efl_del(*eo);
364 *eo = NULL; 364 *eo = NULL;
365} 365}