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:
Cedric Bail 2014-01-11 21:36:47 +09:00
parent f111c8da6d
commit 3e89295c73
1 changed files with 1 additions and 1 deletions

View File

@ -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++;