Fix Segv when removing .eapp from all

SVN revision: 14678
This commit is contained in:
sebastid 2005-05-08 22:37:25 +00:00 committed by sebastid
parent 49185cab25
commit 3bc4a441cd
1 changed files with 4 additions and 2 deletions

View File

@ -836,11 +836,12 @@ _e_app_cb_monitor(void *data, Ecore_File_Monitor *em,
if (a) if (a)
{ {
a->deleted = 1; a->deleted = 1;
for (l = a->references; l; l = l->next) for (l = a->references; l;)
{ {
E_App *a2; E_App *a2;
a2 = l->data; a2 = l->data;
l = l->next;
if (a2->parent) if (a2->parent)
_e_app_subdir_rescan(a2->parent); _e_app_subdir_rescan(a2->parent);
} }
@ -852,11 +853,12 @@ _e_app_cb_monitor(void *data, Ecore_File_Monitor *em,
Evas_List *l; Evas_List *l;
app->deleted = 1; app->deleted = 1;
for (l = app->references; l; l = l->next) for (l = app->references; l;)
{ {
E_App *a2; E_App *a2;
a2 = l->data; a2 = l->data;
l = l->next;
if (a2->parent) if (a2->parent)
_e_app_subdir_rescan(a2->parent); _e_app_subdir_rescan(a2->parent);
} }