make glyr stop crashing

This commit is contained in:
zmike 2014-03-01 13:02:57 -05:00
parent 4377cec26e
commit 70bb6b3e22
1 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,8 @@ exe_data(void *d EINA_UNUSED, int t EINA_UNUSED, Ecore_Exe_Event_Data *ev)
Ecore_Exe_Event_Data_Line *el;
tag = ecore_exe_tag_get(ev->exe);
if ((!tag) || strcmp(tag, "glyr")) return ECORE_CALLBACK_RENEW;
if ((!eina_list_data_find_list(exes, ev->exe)) || (!tag) || strcmp(tag, "glyr"))
return ECORE_CALLBACK_RENEW;
req = ecore_exe_data_get(ev->exe);
for (el = ev->lines; el && el->line ; el++)
{
@ -100,6 +101,7 @@ exe_del(void *d EINA_UNUSED, int t EINA_UNUSED, Ecore_Exe_Event_Del *ev)
if (!l) return (!tag) || strcmp(tag, "glyr");
exes = eina_list_remove_list(exes, l);
if ((!tag) || strcmp(tag, "glyr")) return ECORE_CALLBACK_DONE;
ecore_exe_tag_set(ev->exe, NULL);
req = ecore_exe_data_get(ev->exe);
empc_metadata_fetch_done(req, NULL);
return ECORE_CALLBACK_DONE;