fix segv - cant access file after its been freed...

SVN revision: 33892
This commit is contained in:
Carsten Haitzler 2008-03-02 02:34:23 +00:00
parent 0cd91f89df
commit 7564343804
1 changed files with 5 additions and 5 deletions

View File

@ -642,11 +642,6 @@ _edje_file_del(Edje *ed)
_edje_cache_coll_unref(ed->file, ed->collection); _edje_cache_coll_unref(ed->file, ed->collection);
ed->collection = NULL; ed->collection = NULL;
} }
if (ed->file)
{
_edje_cache_file_unref(ed->file);
ed->file = NULL;
}
if (ed->table_parts) if (ed->table_parts)
{ {
int i; int i;
@ -691,6 +686,11 @@ _edje_file_del(Edje *ed)
free(rp); free(rp);
} }
} }
if (ed->file)
{
_edje_cache_file_unref(ed->file);
ed->file = NULL;
}
if (ed->actions) if (ed->actions)
{ {
while (ed->actions) while (ed->actions)