evas/cserve2: Reset pointers to NULL after close

This commit is contained in:
Jean-Philippe Andre 2013-09-02 10:10:02 +09:00
parent e061114934
commit a7b3f7efd3
1 changed files with 2 additions and 0 deletions

View File

@ -2201,6 +2201,8 @@ _shared_index_remap_check(Shared_Index *si, int elemsize)
eina_file_map_free(si->f, si->data);
eina_file_close(si->f);
eina_hash_free(si->entries_by_hkey);
si->f = NULL;
si->data = NULL;
memset(si, 0, sizeof(*si));
}
return EINA_FALSE;