elementary: no need to check for part during destruction.

Differential Revision: https://phab.enlightenment.org/D6105
This commit is contained in:
Cedric BAIL 2018-05-04 14:46:51 -07:00
parent 6476896ec5
commit 1991900fd6
1 changed files with 2 additions and 0 deletions

View File

@ -1029,6 +1029,8 @@ EAPI Evas_Object *
elm_layout_content_get(const Evas_Object *obj, const char *swallow)
{
EFL_UI_LAYOUT_CHECK(obj) NULL;
// If the object is already dead, their shouldn't be any part in it
if (efl_invalidated_get(obj)) return NULL;
if (!swallow)
{
swallow = efl_ui_widget_default_content_part_get(obj);