summaryrefslogtreecommitdiff
path: root/src/lib/eo/Eo.h
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2018-04-06 14:42:58 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-01 10:39:01 -0700
commit356e37564abb18775c5b9cb5a0d52dd0aba6290f (patch)
tree35073d2e3bd1104a8ab94f4036b1be20525bb2dc /src/lib/eo/Eo.h
parente22e433d3849b44c7b2a2c5d58a7105993155ede (diff)
eo: handle NULL nicely in efl_replace.
Diffstat (limited to '')
-rw-r--r--src/lib/eo/Eo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index f511562719..e7ec0a761a 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -2047,7 +2047,7 @@ static inline void
2047efl_replace(Eo **storage, Eo *new_obj) 2047efl_replace(Eo **storage, Eo *new_obj)
2048{ 2048{
2049 if (!storage || *storage == new_obj) return; 2049 if (!storage || *storage == new_obj) return;
2050 efl_ref(new_obj); 2050 if (new_obj) efl_ref(new_obj);
2051 efl_unref(*storage); 2051 efl_unref(*storage);
2052 *storage = new_obj; 2052 *storage = new_obj;
2053} 2053}