summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-10-24 14:43:43 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-10-24 14:49:12 +0900
commit006546a042a4f945a4936e2f29a55bb1c67648ea (patch)
tree6eb255f69a8c5c88fc8c7048841f0697b69b2094 /src/lib/elementary/efl_ui_win.c
parent1b481f0ae85b503b2e6afa64b907bba4bf41e006 (diff)
elm: Use auto_unref for parts
This avoids leaks.
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_win.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index b05f3493a8..14e34b8313 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -7012,7 +7012,6 @@ _efl_ui_win_part_efl_gfx_color_set(Eo *obj, void *_pd EINA_UNUSED, int r, int g,
7012 ERR("Evas only handles premultiplied colors (0 <= R,G,B <= A <= 255)"); 7012 ERR("Evas only handles premultiplied colors (0 <= R,G,B <= A <= 255)");
7013 7013
7014 _efl_ui_win_part_color_set(pd->obj, sd, pd->part, r, g, b, a); 7014 _efl_ui_win_part_color_set(pd->obj, sd, pd->part, r, g, b, a);
7015 ELM_PART_RETURN_VOID;
7016} 7015}
7017 7016
7018static void 7017static void
@@ -7021,7 +7020,6 @@ _efl_ui_win_part_efl_gfx_color_get(Eo *obj, void *_pd EINA_UNUSED, int *r, int *
7021 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS); 7020 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
7022 Efl_Ui_Win_Data *sd = efl_data_scope_get(pd->obj, MY_CLASS); 7021 Efl_Ui_Win_Data *sd = efl_data_scope_get(pd->obj, MY_CLASS);
7023 _efl_ui_win_part_color_get(pd->obj, sd, pd->part, r, g, b, a); 7022 _efl_ui_win_part_color_get(pd->obj, sd, pd->part, r, g, b, a);
7024 ELM_PART_RETURN_VOID;
7025} 7023}
7026 7024
7027static Eina_Bool 7025static Eina_Bool
@@ -7029,7 +7027,7 @@ _efl_ui_win_part_efl_file_file_set(Eo *obj, void *_pd EINA_UNUSED, const char *f
7029{ 7027{
7030 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS); 7028 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
7031 Efl_Ui_Win_Data *sd = efl_data_scope_get(pd->obj, MY_CLASS); 7029 Efl_Ui_Win_Data *sd = efl_data_scope_get(pd->obj, MY_CLASS);
7032 ELM_PART_RETURN_VAL(_efl_ui_win_part_file_set(pd->obj, sd, pd->part, file, key)); 7030 return _efl_ui_win_part_file_set(pd->obj, sd, pd->part, file, key);
7033} 7031}
7034 7032
7035static void 7033static void
@@ -7038,7 +7036,6 @@ _efl_ui_win_part_efl_file_file_get(Eo *obj, void *_pd EINA_UNUSED, const char **
7038 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS); 7036 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
7039 Efl_Ui_Win_Data *sd = efl_data_scope_get(pd->obj, MY_CLASS); 7037 Efl_Ui_Win_Data *sd = efl_data_scope_get(pd->obj, MY_CLASS);
7040 _efl_ui_win_part_file_get(pd->obj, sd, pd->part, file, key); 7038 _efl_ui_win_part_file_get(pd->obj, sd, pd->part, file, key);
7041 ELM_PART_RETURN_VOID;
7042} 7039}
7043 7040
7044ELM_PART_OVERRIDE(efl_ui_win, EFL_UI_WIN, Efl_Ui_Win_Data) 7041ELM_PART_OVERRIDE(efl_ui_win, EFL_UI_WIN, Efl_Ui_Win_Data)