fix a crash when edje parent is null from _edje_fetch
authordiscomfitor <discomfitor>
Thu, 21 Jun 2012 10:23:42 +0000 (10:23 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 21 Jun 2012 10:23:42 +0000 (10:23 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@72585 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_load.c

index 21f8ded..8e93248 100644 (file)
@@ -1731,6 +1731,7 @@ _cb_signal_repeat(void *data, Evas_Object *obj, const char *sig, const char *sou
    emsg.sig = sig;
    emsg.src = alias ? alias : new_src;
    emsg.data = NULL;
-   _edje_message_send(ed_parent, EDJE_QUEUE_SCRIPT, 
-                      EDJE_MESSAGE_SIGNAL, 0, &emsg);
+   if (ed_parent)
+     _edje_message_send(ed_parent, EDJE_QUEUE_SCRIPT, 
+                        EDJE_MESSAGE_SIGNAL, 0, &emsg);
 }