forked from enlightenment/efl
elementary: fix memory leak from Efl.Ui.Layout.Object
Summary: The 'data' could not be added to hash in a condition. It has to be free'd before ending the function. @fix Test Plan: N/A Reviewers: cedric, raster, Hermet, zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7083
This commit is contained in:
parent
040bef8f13
commit
0098aa6670
|
@ -2165,12 +2165,16 @@ _efl_ui_layout_object_efl_ui_model_connect_connect(Eo *obj EINA_UNUSED, Efl_Ui_L
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update display right away if possible
|
// Update display right away if possible
|
||||||
if (!pd->connect.model) return ;
|
if (pd->connect.model)
|
||||||
|
{
|
||||||
|
if (hash == pd->connect.signals)
|
||||||
|
_efl_ui_layout_view_model_signal_update(pd, data, sprop);
|
||||||
|
else
|
||||||
|
_efl_ui_layout_view_model_property_update(pd, data, sprop);
|
||||||
|
}
|
||||||
|
|
||||||
if (hash == pd->connect.signals)
|
if (!sprop)
|
||||||
_efl_ui_layout_view_model_signal_update(pd, data, sprop);
|
free(data);
|
||||||
else
|
|
||||||
_efl_ui_layout_view_model_property_update(pd, data, sprop);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
|
|
Loading…
Reference in New Issue