forked from enlightenment/efl
eina: fix memory leak of inserting the wrong value in the hash.
We where inserting the pointer data instead of the pointer, leading to unaligned access on Sparc (Thanks Lutin to report it and Debian tools/infra to help us catch it) and also a memory leak.
This commit is contained in:
parent
f111c8da6d
commit
3e89295c73
|
@ -192,7 +192,7 @@ eina_file_virtual_map_new(Eina_File *file,
|
|||
map->refcount = 0;
|
||||
|
||||
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++;
|
||||
|
|
Loading…
Reference in New Issue