Revert "efl_ui_layout: call efl_del instead of efl_unref when text part does not...
authorCedric BAIL <cedric.bail@free.fr>
Wed, 20 Mar 2019 17:55:29 +0000 (10:55 -0700)
committerJunsuChoi <jsuya.choi@samsung.com>
Tue, 2 Apr 2019 04:14:38 +0000 (13:14 +0900)
This reverts commit cced5487c83c8f75e2ca40969f5749d5e6570228.

This patch was pushed just to silence warning without fixing the problem and doing
something that was incorrect (coupling an efl_del with an efl_ref).

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8429

src/lib/elementary/efl_ui_layout.c

index 474cf23..e483a99 100644 (file)
@@ -3050,7 +3050,7 @@ elm_layout_text_set(Eo *obj, const char *part, const char *text)
    if (!efl_isa(part_obj, EFL_TEXT_INTERFACE) ||
        !efl_isa(part_obj, EFL_UI_LAYOUT_PART_CLASS))
      {
-        efl_del(part_obj);
+        efl_unref(part_obj);
         return EINA_FALSE;
      }