forked from enlightenment/efl
evas/map: permit evas_map_free(NULL)
free functions in efl should always handle null pointers gracefully @fix Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9363
This commit is contained in:
parent
033b438891
commit
bf01c2382a
|
@ -739,10 +739,7 @@ evas_map_dup(const Evas_Map *m)
|
|||
EAPI void
|
||||
evas_map_free(Evas_Map *m)
|
||||
{
|
||||
MAGIC_CHECK(m, Evas_Map, MAGIC_MAP);
|
||||
return;
|
||||
MAGIC_CHECK_END();
|
||||
|
||||
if (!m) return;
|
||||
_evas_map_free(NULL, m);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue