From 3bc4a441cd37f19fdcb32ccdc5a0f9d88f9c936a Mon Sep 17 00:00:00 2001 From: sebastid Date: Sun, 8 May 2005 22:37:25 +0000 Subject: [PATCH] Fix Segv when removing .eapp from all SVN revision: 14678 --- src/bin/e_apps.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/e_apps.c b/src/bin/e_apps.c index d5a3b891c..cb7ddc098 100644 --- a/src/bin/e_apps.c +++ b/src/bin/e_apps.c @@ -836,11 +836,12 @@ _e_app_cb_monitor(void *data, Ecore_File_Monitor *em, if (a) { a->deleted = 1; - for (l = a->references; l; l = l->next) + for (l = a->references; l;) { E_App *a2; a2 = l->data; + l = l->next; if (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; app->deleted = 1; - for (l = app->references; l; l = l->next) + for (l = app->references; l;) { E_App *a2; a2 = l->data; + l = l->next; if (a2->parent) _e_app_subdir_rescan(a2->parent); }