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
|
EAPI void
|
||||||
evas_map_free(Evas_Map *m)
|
evas_map_free(Evas_Map *m)
|
||||||
{
|
{
|
||||||
MAGIC_CHECK(m, Evas_Map, MAGIC_MAP);
|
if (!m) return;
|
||||||
return;
|
|
||||||
MAGIC_CHECK_END();
|
|
||||||
|
|
||||||
_evas_map_free(NULL, m);
|
_evas_map_free(NULL, m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue