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
This commit is contained in:
wonguk.jeong 2014-04-09 19:21:30 +09:00 committed by Carsten Haitzler (Rasterman)
parent 6bb01b0d18
commit 6994f32351
1 changed files with 1 additions and 0 deletions

View File

@ -910,6 +910,7 @@ _ipc_server_del(void *data, int type EINA_UNUSED, void *event)
if (extn->ipc.server != e->server) return ECORE_CALLBACK_PASS_ON;
evas_object_image_data_set(bdata->image, NULL);
bdata->pixels = NULL;
extn->ipc.server = NULL;
for (i = 0; i < NBUF; i++)
{