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:
Mike Blumenkrantz 2019-07-19 15:44:08 -04:00 committed by Cedric BAIL
parent 033b438891
commit bf01c2382a
1 changed files with 1 additions and 4 deletions

View File

@ -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);
} }