efl/eina: fix map leak in Eina_File.

SVN revision: 83668
This commit is contained in:
Cedric BAIL 2013-02-06 09:28:00 +00:00
parent 57badb0587
commit 1cb8c3c006
3 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2013-02-06 Cedric Bail
* eina: fix map leak in Eina_File.
2013-02-05 Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
* ecore_wayland: Fix return type of function ecore_wl_outputs_get()

1
NEWS
View File

@ -149,3 +149,4 @@ Fixes:
* Fix cache miss when active edje hash is empty.
* Prevent denial of service on eina_hash function.
* Fix return type of function ecore_wl_outputs_get().
* Fix memleak in Eina_File.

View File

@ -1336,7 +1336,7 @@ eina_file_map_new(Eina_File *file, Eina_File_Populate rule,
if (map->map == MAP_FAILED) goto on_error;
eina_hash_add(file->map, &key, map);
eina_hash_direct_add(file->rmap, map->map, map);
eina_hash_direct_add(file->rmap, &map->map, map);
}
map->refcount++;