forked from enlightenment/efl
ector: use efl_replace to make sure that no dangling pointer is left being.
Reviewers: Hermet, smohanty Reviewed By: Hermet Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7273
This commit is contained in:
parent
3a35e64718
commit
2dd9dbff60
|
@ -58,9 +58,9 @@ static void
|
|||
_ector_renderer_shape_efl_object_invalidate(Eo *obj EINA_UNUSED,
|
||||
Ector_Renderer_Shape_Data *pd)
|
||||
{
|
||||
if (pd->fill) efl_unref(pd->fill);
|
||||
if (pd->stroke.fill) efl_unref(pd->stroke.fill);
|
||||
if (pd->stroke.marker) efl_unref(pd->stroke.marker);
|
||||
efl_replace(&pd->fill, NULL);
|
||||
efl_replace(&pd->stroke.fill, NULL);
|
||||
efl_replace(&pd->stroke.marker, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue