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
This commit is contained in:
parent
9a55abef30
commit
be419d64d2
|
@ -15,7 +15,11 @@ _ector_renderer_efl_object_destructor(Eo *obj, Ector_Renderer_Data *pd)
|
|||
efl_destructor(efl_super(obj, MY_CLASS));
|
||||
|
||||
if (pd->m) free(pd->m);
|
||||
efl_unref(pd->surface);
|
||||
/*FIXME: 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.*/
|
||||
if (efl_ref_count(pd->surface) > 0)
|
||||
efl_unref(pd->surface);
|
||||
}
|
||||
|
||||
static Efl_Object *
|
||||
|
|
Loading…
Reference in New Issue