plug: fix SEGV of elementary_test during reconnecting

Summary:
problem:
1. open window socket
2. open window plug
3. close window socket
4. open window socket
5. SEGV

there was invalid timer deletion due to dangling pointer.

@fix

Test Plan: elementary_test -> open window socket -> open window plug -> close window socket -> open window socket ->SEGV

Reviewers: raster, seoz

Reviewed By: raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D699
This commit is contained in:
wonguk.jeong 2014-04-04 12:18:48 +09:00 committed by Carsten Haitzler (Rasterman)
parent 1479664ec0
commit c2e8ef52ad
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ cb_plug_connect(void *data)
if (elm_plug_connect(obj, "ello", 0, EINA_FALSE))
{
printf("plug connect to server[ello]\n");
evas_object_data_del(obj, "test-timer");
return ECORE_CALLBACK_CANCEL;
}