summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/extn
diff options
context:
space:
mode:
authorwonguk.jeong <wonguk.jeong@samsung.com>2014-04-09 19:21:30 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-04-09 19:21:30 +0900
commit6994f3235127a519729caef2b5687ff92cc806cb (patch)
tree388a754f404607f508d2a6db56ca3b2f5b2ff807 /src/modules/ecore_evas/engines/extn
parent6bb01b0d18607ba6b7334a8f0fff6d16946364f1 (diff)
ecore_evas_extn: initialize server handle on server deletion
Summary: Since plug sends message by using deleted server handle (dangling pointer), I could see glorious error message as below: *** ECORE ERROR: Ecore Magic Check Failed!!! *** IN FUNCTION: ecore_con_server_send() ERR<842>:ecore lib/ecore/ecore.c:729 _ecore_magic_fail() Input handle pointer is NULL! ERR<842>:ecore lib/ecore/ecore.c:740 _ecore_magic_fail() *** NAUGHTY PROGRAMMER!!! *** SPANK SPANK SPANK!!! *** Now go fix your code. Tut tut tut! Therefore, I initialized server handle on server deletion @fix Test Plan: create socket -> create plug -> destroy socket -> mouse move on plug area Reviewers: raster, cedric Reviewed By: raster CC: seoz, cedric Differential Revision: https://phab.enlightenment.org/D701
Diffstat (limited to 'src/modules/ecore_evas/engines/extn')
-rw-r--r--src/modules/ecore_evas/engines/extn/ecore_evas_extn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c b/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
index f953a0d520..00fbf62385 100644
--- a/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
+++ b/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
@@ -910,6 +910,7 @@ _ipc_server_del(void *data, int type EINA_UNUSED, void *event)
910 if (extn->ipc.server != e->server) return ECORE_CALLBACK_PASS_ON; 910 if (extn->ipc.server != e->server) return ECORE_CALLBACK_PASS_ON;
911 evas_object_image_data_set(bdata->image, NULL); 911 evas_object_image_data_set(bdata->image, NULL);
912 bdata->pixels = NULL; 912 bdata->pixels = NULL;
913 extn->ipc.server = NULL;
913 914
914 for (i = 0; i < NBUF; i++) 915 for (i = 0; i < NBUF; i++)
915 { 916 {