rage - quieten coverity even though its not an isue

locks in entry frees are not needed as by the time something is freed
a thread is no longer using it, but this should make coverity happy.
This commit is contained in:
Carsten Haitzler 2015-10-11 14:46:06 +09:00
parent 25a21888bc
commit 40483f4de3
1 changed files with 2 additions and 0 deletions

View File

@ -500,11 +500,13 @@ _entry_free(Entry *entry)
Entry *subentry;
Eina_Stringshare *str;
if (!entry) return;
eina_lock_take(&(entry->lock));
entry->sels = eina_list_free(entry->sels);
EINA_LIST_FREE(entry->files, str) eina_stringshare_del(str);
EINA_LIST_FREE(entry->dirs, subentry) _entry_free(subentry);
if (entry->base) evas_object_del(entry->base);
eina_stringshare_del(entry->path);
eina_lock_release(&(entry->lock));
eina_lock_free(&(entry->lock));
if (entry == selentry) selentry = NULL;
free(entry);