summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-19 15:44:08 -0400
committerCedric BAIL <cedric.bail@free.fr>2019-07-19 15:05:04 -0700
commitbf01c2382a9b5c37f550e3559516c1e35126e5a0 (patch)
treee3730d1ae44037d67d34a7819699b94837092625
parent033b438891db8f1c17380f1f571d950a860bf00b (diff)
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
-rw-r--r--src/lib/evas/canvas/evas_map.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/evas/canvas/evas_map.c b/src/lib/evas/canvas/evas_map.c
index 1f576fcf84..19a85d9995 100644
--- a/src/lib/evas/canvas/evas_map.c
+++ b/src/lib/evas/canvas/evas_map.c
@@ -739,10 +739,7 @@ evas_map_dup(const Evas_Map *m)
739EAPI void 739EAPI void
740evas_map_free(Evas_Map *m) 740evas_map_free(Evas_Map *m)
741{ 741{
742 MAGIC_CHECK(m, Evas_Map, MAGIC_MAP); 742 if (!m) return;
743 return;
744 MAGIC_CHECK_END();
745
746 _evas_map_free(NULL, m); 743 _evas_map_free(NULL, m);
747} 744}
748 745