ok, I should get some sleep

SVN revision: 43240
This commit is contained in:
Iván Briano 2009-10-24 05:12:17 +00:00
parent bddead122d
commit b263f7cd23
1 changed files with 12 additions and 16 deletions

View File

@ -93,14 +93,12 @@ elm_theme_overlay_del(const char *item)
const char *f, *s; const char *f, *s;
s = eina_stringshare_add(item); s = eina_stringshare_add(item);
EINA_LIST_FOREACH(overlay, l, f) EINA_LIST_FOREACH(overlay, l, f)
{ if (f == s)
if (f == s) {
{ eina_stringshare_del(f);
eina_stringshare_del(f); overlay = eina_list_remove_list(overlay, l);
overlay = eina_list_remove_list(overlay, l); break;
} }
break;
}
eina_stringshare_del(s); eina_stringshare_del(s);
elm_theme_flush(); elm_theme_flush();
} }
@ -120,14 +118,12 @@ elm_theme_extension_del(const char *item)
const char *f, *s; const char *f, *s;
s = eina_stringshare_add(item); s = eina_stringshare_add(item);
EINA_LIST_FOREACH(extension, l, f) EINA_LIST_FOREACH(extension, l, f)
{ if (f == s)
if (f == s) {
{ eina_stringshare_del(f);
eina_stringshare_del(f); extension = eina_list_remove_list(extension, l);
extension = eina_list_remove_list(extension, l); break;
} }
break;
}
eina_stringshare_del(s); eina_stringshare_del(s);
elm_theme_flush(); elm_theme_flush();
} }