fix a silly bug that caused a memleak (i think)

SVN revision: 14922
This commit is contained in:
tsauerbeck 2005-05-23 17:29:43 +00:00 committed by tsauerbeck
parent 396a16f47c
commit bd62aadc6e
1 changed files with 2 additions and 2 deletions

View File

@ -389,7 +389,7 @@ edje_file_collection_list(const char *file)
lst = evas_list_append(lst, strdup(ce->entry));
}
}
if (ed_file > 0) _edje_file_unref(ed_file);
if (ed_file->references > 0) _edje_file_unref(ed_file);
else _edje_file_free(ed_file);
return lst;
}
@ -453,7 +453,7 @@ edje_file_data_get(const char *file, const char *key)
break;
}
}
if (ed_file > 0) _edje_file_unref(ed_file);
if (ed_file->references > 0) _edje_file_unref(ed_file);
else _edje_file_free(ed_file);
return str;
}