summaryrefslogtreecommitdiff
path: root/src/lib/ector
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2019-07-09 15:46:41 +0900
committerHermet Park <hermetpark@gmail.com>2019-07-09 15:46:41 +0900
commitbe419d64d2cc34eaa3e7c8c4eec0508466e10cee (patch)
treec0b3cebc8eea294289a5c3246bef34deddcda933 /src/lib/ector
parent9a55abef3047be1b7a7e173570cdbcd417e0d59c (diff)
Ector.Renderer: Prevent too many unref.
Summary: pd-> surface will try efl_xref whenever surface_set is called. desturctor is called from a subclass, ref and unref do not match. So, Add this condition temporarily. Test Plan: N/A Reviewers: Hermet, smohanty, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9235
Diffstat (limited to 'src/lib/ector')
-rw-r--r--src/lib/ector/ector_renderer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/ector/ector_renderer.c b/src/lib/ector/ector_renderer.c
index 186e323..d0efab6 100644
--- a/src/lib/ector/ector_renderer.c
+++ b/src/lib/ector/ector_renderer.c
@@ -15,7 +15,11 @@ _ector_renderer_efl_object_destructor(Eo *obj, Ector_Renderer_Data *pd)
15 efl_destructor(efl_super(obj, MY_CLASS)); 15 efl_destructor(efl_super(obj, MY_CLASS));
16 16
17 if (pd->m) free(pd->m); 17 if (pd->m) free(pd->m);
18 efl_unref(pd->surface); 18 /*FIXME: pd-> surface will try efl_xref whenever surface_set is called.
19 desturctor is called from a subclass, ref and unref do not match.
20 So, Add this condition temporarily.*/
21 if (efl_ref_count(pd->surface) > 0)
22 efl_unref(pd->surface);
19} 23}
20 24
21static Efl_Object * 25static Efl_Object *