summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-09-25 17:39:32 +0100
committerTom Hacohen <tom@stosb.com>2014-09-25 17:39:34 +0100
commit6cb6fef4d5458a60c81b834f844a0e4fa159fcbc (patch)
tree1f64255c5d689f9ad87026d7cc9a124d4721fc57 /src/lib
parent6e7686c030fab162edb3128de005ec00ea8c0ffc (diff)
Eo related: Change according to recent changes in eo_add().
For more info check out a7560dbc61953c3652780f232e38adbd2d711972 in the EFL tree.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elc_ctxpopup.c1
-rw-r--r--src/lib/elc_fileselector.c1
-rw-r--r--src/lib/elc_fileselector_button.c1
-rw-r--r--src/lib/elc_fileselector_entry.c1
-rw-r--r--src/lib/elc_hoversel.c1
-rw-r--r--src/lib/elc_multibuttonentry.c1
-rw-r--r--src/lib/elc_naviframe.c1
-rw-r--r--src/lib/elc_player.c1
-rw-r--r--src/lib/elc_popup.c1
-rw-r--r--src/lib/elm_access.c1
-rw-r--r--src/lib/elm_actionslider.c1
-rw-r--r--src/lib/elm_bg.c1
-rw-r--r--src/lib/elm_box.c1
-rw-r--r--src/lib/elm_bubble.c1
-rw-r--r--src/lib/elm_button.c1
-rw-r--r--src/lib/elm_calendar.c1
-rw-r--r--src/lib/elm_check.c1
-rw-r--r--src/lib/elm_clock.c1
-rw-r--r--src/lib/elm_colorselector.c1
-rw-r--r--src/lib/elm_conform.c1
-rw-r--r--src/lib/elm_datetime.c1
-rw-r--r--src/lib/elm_dayselector.c1
-rw-r--r--src/lib/elm_diskselector.c1
-rw-r--r--src/lib/elm_entry.c1
-rw-r--r--src/lib/elm_flip.c1
-rw-r--r--src/lib/elm_flipselector.c1
-rw-r--r--src/lib/elm_frame.c1
-rw-r--r--src/lib/elm_gengrid.c1
-rw-r--r--src/lib/elm_genlist.c1
-rw-r--r--src/lib/elm_gesture_layer.c1
-rw-r--r--src/lib/elm_glview.c1
-rw-r--r--src/lib/elm_grid.c1
-rw-r--r--src/lib/elm_hover.c1
-rw-r--r--src/lib/elm_icon.c1
-rw-r--r--src/lib/elm_image.c1
-rw-r--r--src/lib/elm_index.c1
-rw-r--r--src/lib/elm_interface_scrollable.c1
-rw-r--r--src/lib/elm_inwin.c1
-rw-r--r--src/lib/elm_label.c2
-rw-r--r--src/lib/elm_layout.c1
-rw-r--r--src/lib/elm_list.c1
-rw-r--r--src/lib/elm_map.c1
-rw-r--r--src/lib/elm_mapbuf.c1
-rw-r--r--src/lib/elm_menu.c1
-rw-r--r--src/lib/elm_notify.c1
-rw-r--r--src/lib/elm_panel.c1
-rw-r--r--src/lib/elm_panes.c1
-rw-r--r--src/lib/elm_photo.c1
-rw-r--r--src/lib/elm_photocam.c1
-rw-r--r--src/lib/elm_plug.c1
-rw-r--r--src/lib/elm_prefs.c1
-rw-r--r--src/lib/elm_progressbar.c1
-rw-r--r--src/lib/elm_radio.c1
-rw-r--r--src/lib/elm_route.c1
-rw-r--r--src/lib/elm_scroller.c1
-rw-r--r--src/lib/elm_segment_control.c1
-rw-r--r--src/lib/elm_separator.c1
-rw-r--r--src/lib/elm_slider.c1
-rw-r--r--src/lib/elm_slideshow.c1
-rw-r--r--src/lib/elm_spinner.c1
-rw-r--r--src/lib/elm_table.c1
-rw-r--r--src/lib/elm_thumb.c1
-rw-r--r--src/lib/elm_toolbar.c1
-rw-r--r--src/lib/elm_video.c1
-rw-r--r--src/lib/elm_web2.c1
-rw-r--r--src/lib/elm_win.c11
66 files changed, 10 insertions, 67 deletions
diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c
index 0974e4bfe..8f1973dde 100644
--- a/src/lib/elc_ctxpopup.c
+++ b/src/lib/elc_ctxpopup.c
@@ -1179,7 +1179,6 @@ elm_ctxpopup_add(Evas_Object *parent)
1179{ 1179{
1180 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1180 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1181 Evas_Object *obj = eo_add(MY_CLASS, parent); 1181 Evas_Object *obj = eo_add(MY_CLASS, parent);
1182 eo_unref(obj);
1183 1182
1184 /* access: parent could be any object such as elm_list which does 1183 /* access: parent could be any object such as elm_list which does
1185 not know elc_ctxpopup as its child object in the focus_next(); */ 1184 not know elc_ctxpopup as its child object in the focus_next(); */
diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c
index 201345323..7a83cd177 100644
--- a/src/lib/elc_fileselector.c
+++ b/src/lib/elc_fileselector.c
@@ -1551,7 +1551,6 @@ elm_fileselector_add(Evas_Object *parent)
1551{ 1551{
1552 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1552 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1553 Evas_Object *obj = eo_add(MY_CLASS, parent); 1553 Evas_Object *obj = eo_add(MY_CLASS, parent);
1554 eo_unref(obj);
1555 return obj; 1554 return obj;
1556} 1555}
1557 1556
diff --git a/src/lib/elc_fileselector_button.c b/src/lib/elc_fileselector_button.c
index 8ab6b4cfc..3891389e7 100644
--- a/src/lib/elc_fileselector_button.c
+++ b/src/lib/elc_fileselector_button.c
@@ -212,7 +212,6 @@ elm_fileselector_button_add(Evas_Object *parent)
212{ 212{
213 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 213 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
214 Evas_Object *obj = eo_add(MY_CLASS, parent); 214 Evas_Object *obj = eo_add(MY_CLASS, parent);
215 eo_unref(obj);
216 return obj; 215 return obj;
217} 216}
218 217
diff --git a/src/lib/elc_fileselector_entry.c b/src/lib/elc_fileselector_entry.c
index c78aa71a0..35b18e807 100644
--- a/src/lib/elc_fileselector_entry.c
+++ b/src/lib/elc_fileselector_entry.c
@@ -343,7 +343,6 @@ elm_fileselector_entry_add(Evas_Object *parent)
343{ 343{
344 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 344 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
345 Evas_Object *obj = eo_add(MY_CLASS, parent); 345 Evas_Object *obj = eo_add(MY_CLASS, parent);
346 eo_unref(obj);
347 return obj; 346 return obj;
348} 347}
349 348
diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c
index be6bbe342..a8f7a13a2 100644
--- a/src/lib/elc_hoversel.c
+++ b/src/lib/elc_hoversel.c
@@ -347,7 +347,6 @@ elm_hoversel_add(Evas_Object *parent)
347{ 347{
348 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 348 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
349 Evas_Object *obj = eo_add(MY_CLASS, parent); 349 Evas_Object *obj = eo_add(MY_CLASS, parent);
350 eo_unref(obj);
351 return obj; 350 return obj;
352} 351}
353 352
diff --git a/src/lib/elc_multibuttonentry.c b/src/lib/elc_multibuttonentry.c
index 14f050ce2..d394453d3 100644
--- a/src/lib/elc_multibuttonentry.c
+++ b/src/lib/elc_multibuttonentry.c
@@ -1610,7 +1610,6 @@ elm_multibuttonentry_add(Evas_Object *parent)
1610{ 1610{
1611 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1611 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1612 Evas_Object *obj = eo_add(MY_CLASS, parent); 1612 Evas_Object *obj = eo_add(MY_CLASS, parent);
1613 eo_unref(obj);
1614 return obj; 1613 return obj;
1615} 1614}
1616 1615
diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c
index d5d3e8b9a..7a54e8470 100644
--- a/src/lib/elc_naviframe.c
+++ b/src/lib/elc_naviframe.c
@@ -1532,7 +1532,6 @@ elm_naviframe_add(Evas_Object *parent)
1532{ 1532{
1533 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1533 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1534 Evas_Object *obj = eo_add(MY_CLASS, parent); 1534 Evas_Object *obj = eo_add(MY_CLASS, parent);
1535 eo_unref(obj);
1536 return obj; 1535 return obj;
1537} 1536}
1538 1537
diff --git a/src/lib/elc_player.c b/src/lib/elc_player.c
index 04f0a49e8..1e0c46230 100644
--- a/src/lib/elc_player.c
+++ b/src/lib/elc_player.c
@@ -706,7 +706,6 @@ elm_player_add(Evas_Object *parent)
706{ 706{
707 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 707 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
708 Evas_Object *obj = eo_add(MY_CLASS, parent); 708 Evas_Object *obj = eo_add(MY_CLASS, parent);
709 eo_unref(obj);
710 return obj; 709 return obj;
711} 710}
712 711
diff --git a/src/lib/elc_popup.c b/src/lib/elc_popup.c
index 76ac2c55b..8daa8be0b 100644
--- a/src/lib/elc_popup.c
+++ b/src/lib/elc_popup.c
@@ -1484,7 +1484,6 @@ elm_popup_add(Evas_Object *parent)
1484{ 1484{
1485 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1485 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1486 Evas_Object *obj = eo_add(MY_CLASS, parent); 1486 Evas_Object *obj = eo_add(MY_CLASS, parent);
1487 eo_unref(obj);
1488 1487
1489 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL); 1488 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL);
1490 wd->highlight_root = EINA_TRUE; 1489 wd->highlight_root = EINA_TRUE;
diff --git a/src/lib/elm_access.c b/src/lib/elm_access.c
index f5875917e..cb7c0585c 100644
--- a/src/lib/elm_access.c
+++ b/src/lib/elm_access.c
@@ -1235,7 +1235,6 @@ _elm_access_add(Evas_Object *parent)
1235{ 1235{
1236 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1236 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1237 Evas_Object *obj = eo_add(MY_CLASS, parent); 1237 Evas_Object *obj = eo_add(MY_CLASS, parent);
1238 eo_unref(obj);
1239 return obj; 1238 return obj;
1240} 1239}
1241 1240
diff --git a/src/lib/elm_actionslider.c b/src/lib/elm_actionslider.c
index dac487a15..ec9d72c43 100644
--- a/src/lib/elm_actionslider.c
+++ b/src/lib/elm_actionslider.c
@@ -520,7 +520,6 @@ elm_actionslider_add(Evas_Object *parent)
520{ 520{
521 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 521 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
522 Evas_Object *obj = eo_add(MY_CLASS, parent); 522 Evas_Object *obj = eo_add(MY_CLASS, parent);
523 eo_unref(obj);
524 return obj; 523 return obj;
525} 524}
526 525
diff --git a/src/lib/elm_bg.c b/src/lib/elm_bg.c
index bc71bafb2..03d264580 100644
--- a/src/lib/elm_bg.c
+++ b/src/lib/elm_bg.c
@@ -129,7 +129,6 @@ elm_bg_add(Evas_Object *parent)
129{ 129{
130 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 130 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
131 Evas_Object *obj = eo_add(MY_CLASS, parent); 131 Evas_Object *obj = eo_add(MY_CLASS, parent);
132 eo_unref(obj);
133 return obj; 132 return obj;
134} 133}
135 134
diff --git a/src/lib/elm_box.c b/src/lib/elm_box.c
index 6be7a1ef7..94440542d 100644
--- a/src/lib/elm_box.c
+++ b/src/lib/elm_box.c
@@ -431,7 +431,6 @@ elm_box_add(Evas_Object *parent)
431{ 431{
432 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 432 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
433 Evas_Object *obj = eo_add(MY_CLASS, parent); 433 Evas_Object *obj = eo_add(MY_CLASS, parent);
434 eo_unref(obj);
435 return obj; 434 return obj;
436} 435}
437 436
diff --git a/src/lib/elm_bubble.c b/src/lib/elm_bubble.c
index 861268530..dd3d299f9 100644
--- a/src/lib/elm_bubble.c
+++ b/src/lib/elm_bubble.c
@@ -222,7 +222,6 @@ elm_bubble_add(Evas_Object *parent)
222{ 222{
223 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 223 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
224 Evas_Object *obj = eo_add(MY_CLASS, parent); 224 Evas_Object *obj = eo_add(MY_CLASS, parent);
225 eo_unref(obj);
226 return obj; 225 return obj;
227} 226}
228 227
diff --git a/src/lib/elm_button.c b/src/lib/elm_button.c
index 418b79157..e994f1680 100644
--- a/src/lib/elm_button.c
+++ b/src/lib/elm_button.c
@@ -327,7 +327,6 @@ elm_button_add(Evas_Object *parent)
327{ 327{
328 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 328 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
329 Evas_Object *obj = eo_add(MY_CLASS, parent); 329 Evas_Object *obj = eo_add(MY_CLASS, parent);
330 eo_unref(obj);
331 return obj; 330 return obj;
332} 331}
333 332
diff --git a/src/lib/elm_calendar.c b/src/lib/elm_calendar.c
index 1bde95d89..70a8213a8 100644
--- a/src/lib/elm_calendar.c
+++ b/src/lib/elm_calendar.c
@@ -1179,7 +1179,6 @@ elm_calendar_add(Evas_Object *parent)
1179{ 1179{
1180 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1180 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1181 Evas_Object *obj = eo_add(MY_CLASS, parent); 1181 Evas_Object *obj = eo_add(MY_CLASS, parent);
1182 eo_unref(obj);
1183 return obj; 1182 return obj;
1184} 1183}
1185 1184
diff --git a/src/lib/elm_check.c b/src/lib/elm_check.c
index 9a6373651..ce8a43734 100644
--- a/src/lib/elm_check.c
+++ b/src/lib/elm_check.c
@@ -369,7 +369,6 @@ elm_check_add(Evas_Object *parent)
369{ 369{
370 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 370 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
371 Evas_Object *obj = eo_add(MY_CLASS, parent); 371 Evas_Object *obj = eo_add(MY_CLASS, parent);
372 eo_unref(obj);
373 return obj; 372 return obj;
374} 373}
375 374
diff --git a/src/lib/elm_clock.c b/src/lib/elm_clock.c
index 95317d642..473b5e9c6 100644
--- a/src/lib/elm_clock.c
+++ b/src/lib/elm_clock.c
@@ -795,7 +795,6 @@ elm_clock_add(Evas_Object *parent)
795{ 795{
796 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 796 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
797 Evas_Object *obj = eo_add(MY_CLASS, parent); 797 Evas_Object *obj = eo_add(MY_CLASS, parent);
798 eo_unref(obj);
799 return obj; 798 return obj;
800} 799}
801 800
diff --git a/src/lib/elm_colorselector.c b/src/lib/elm_colorselector.c
index e57294d0a..e4b6fff3e 100644
--- a/src/lib/elm_colorselector.c
+++ b/src/lib/elm_colorselector.c
@@ -1865,7 +1865,6 @@ elm_colorselector_add(Evas_Object *parent)
1865{ 1865{
1866 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1866 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1867 Evas_Object *obj = eo_add(MY_CLASS, parent); 1867 Evas_Object *obj = eo_add(MY_CLASS, parent);
1868 eo_unref(obj);
1869 return obj; 1868 return obj;
1870} 1869}
1871 1870
diff --git a/src/lib/elm_conform.c b/src/lib/elm_conform.c
index 0f9ae8a14..56da8bb71 100644
--- a/src/lib/elm_conform.c
+++ b/src/lib/elm_conform.c
@@ -965,7 +965,6 @@ elm_conformant_add(Evas_Object *parent)
965{ 965{
966 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 966 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
967 Evas_Object *obj = eo_add(MY_CLASS, parent); 967 Evas_Object *obj = eo_add(MY_CLASS, parent);
968 eo_unref(obj);
969 return obj; 968 return obj;
970} 969}
971 970
diff --git a/src/lib/elm_datetime.c b/src/lib/elm_datetime.c
index 09bff6443..9c8d0c1a2 100644
--- a/src/lib/elm_datetime.c
+++ b/src/lib/elm_datetime.c
@@ -867,7 +867,6 @@ elm_datetime_add(Evas_Object *parent)
867{ 867{
868 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 868 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
869 Evas_Object *obj = eo_add(MY_CLASS, parent); 869 Evas_Object *obj = eo_add(MY_CLASS, parent);
870 eo_unref(obj);
871 return obj; 870 return obj;
872} 871}
873 872
diff --git a/src/lib/elm_dayselector.c b/src/lib/elm_dayselector.c
index c67a9b253..fc718ca4e 100644
--- a/src/lib/elm_dayselector.c
+++ b/src/lib/elm_dayselector.c
@@ -444,7 +444,6 @@ elm_dayselector_add(Evas_Object *parent)
444{ 444{
445 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 445 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
446 Evas_Object *obj = eo_add(MY_CLASS, parent); 446 Evas_Object *obj = eo_add(MY_CLASS, parent);
447 eo_unref(obj);
448 return obj; 447 return obj;
449} 448}
450 449
diff --git a/src/lib/elm_diskselector.c b/src/lib/elm_diskselector.c
index 1021d8438..304ded604 100644
--- a/src/lib/elm_diskselector.c
+++ b/src/lib/elm_diskselector.c
@@ -1434,7 +1434,6 @@ elm_diskselector_add(Evas_Object *parent)
1434{ 1434{
1435 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1435 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1436 Evas_Object *obj = eo_add(MY_CLASS, parent); 1436 Evas_Object *obj = eo_add(MY_CLASS, parent);
1437 eo_unref(obj);
1438 return obj; 1437 return obj;
1439} 1438}
1440 1439
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index ed5c7feae..af407b61b 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -3660,7 +3660,6 @@ elm_entry_add(Evas_Object *parent)
3660{ 3660{
3661 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 3661 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
3662 Evas_Object *obj = eo_add(MY_CLASS, parent); 3662 Evas_Object *obj = eo_add(MY_CLASS, parent);
3663 eo_unref(obj);
3664 return obj; 3663 return obj;
3665} 3664}
3666 3665
diff --git a/src/lib/elm_flip.c b/src/lib/elm_flip.c
index 5c28a12b0..a001c3118 100644
--- a/src/lib/elm_flip.c
+++ b/src/lib/elm_flip.c
@@ -1858,7 +1858,6 @@ elm_flip_add(Evas_Object *parent)
1858{ 1858{
1859 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1859 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1860 Evas_Object *obj = eo_add(MY_CLASS, parent); 1860 Evas_Object *obj = eo_add(MY_CLASS, parent);
1861 eo_unref(obj);
1862 return obj; 1861 return obj;
1863} 1862}
1864 1863
diff --git a/src/lib/elm_flipselector.c b/src/lib/elm_flipselector.c
index b7b826e46..fd90c4841 100644
--- a/src/lib/elm_flipselector.c
+++ b/src/lib/elm_flipselector.c
@@ -603,7 +603,6 @@ elm_flipselector_add(Evas_Object *parent)
603{ 603{
604 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 604 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
605 Evas_Object *obj = eo_add(MY_CLASS, parent); 605 Evas_Object *obj = eo_add(MY_CLASS, parent);
606 eo_unref(obj);
607 return obj; 606 return obj;
608} 607}
609 608
diff --git a/src/lib/elm_frame.c b/src/lib/elm_frame.c
index c71ff4da4..d32a7eb06 100644
--- a/src/lib/elm_frame.c
+++ b/src/lib/elm_frame.c
@@ -198,7 +198,6 @@ elm_frame_add(Evas_Object *parent)
198{ 198{
199 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 199 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
200 Evas_Object *obj = eo_add(MY_CLASS, parent); 200 Evas_Object *obj = eo_add(MY_CLASS, parent);
201 eo_unref(obj);
202 return obj; 201 return obj;
203} 202}
204 203
diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index 385c1b8b8..b2c33f690 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -3643,7 +3643,6 @@ elm_gengrid_add(Evas_Object *parent)
3643{ 3643{
3644 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 3644 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
3645 Evas_Object *obj = eo_add(MY_CLASS, parent); 3645 Evas_Object *obj = eo_add(MY_CLASS, parent);
3646 eo_unref(obj);
3647 return obj; 3646 return obj;
3648} 3647}
3649 3648
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 482bb71d3..dd2eeb213 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -5424,7 +5424,6 @@ elm_genlist_add(Evas_Object *parent)
5424{ 5424{
5425 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 5425 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
5426 Evas_Object *obj = eo_add(MY_CLASS, parent); 5426 Evas_Object *obj = eo_add(MY_CLASS, parent);
5427 eo_unref(obj);
5428 return obj; 5427 return obj;
5429} 5428}
5430 5429
diff --git a/src/lib/elm_gesture_layer.c b/src/lib/elm_gesture_layer.c
index 6d901fa2e..fe2ec6444 100644
--- a/src/lib/elm_gesture_layer.c
+++ b/src/lib/elm_gesture_layer.c
@@ -3813,7 +3813,6 @@ elm_gesture_layer_add(Evas_Object *parent)
3813{ 3813{
3814 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 3814 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
3815 Evas_Object *obj = eo_add(MY_CLASS, parent); 3815 Evas_Object *obj = eo_add(MY_CLASS, parent);
3816 eo_unref(obj);
3817 return obj; 3816 return obj;
3818} 3817}
3819 3818
diff --git a/src/lib/elm_glview.c b/src/lib/elm_glview.c
index 4f346564e..d8056952f 100644
--- a/src/lib/elm_glview.c
+++ b/src/lib/elm_glview.c
@@ -263,7 +263,6 @@ elm_glview_add(Evas_Object *parent)
263{ 263{
264 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 264 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
265 Evas_Object *obj = eo_add(MY_CLASS, parent); 265 Evas_Object *obj = eo_add(MY_CLASS, parent);
266 eo_unref(obj);
267 return obj; 266 return obj;
268} 267}
269 268
diff --git a/src/lib/elm_grid.c b/src/lib/elm_grid.c
index ad3a78b85..6b41855e4 100644
--- a/src/lib/elm_grid.c
+++ b/src/lib/elm_grid.c
@@ -164,7 +164,6 @@ elm_grid_add(Evas_Object *parent)
164{ 164{
165 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 165 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
166 Evas_Object *obj = eo_add(MY_CLASS, parent); 166 Evas_Object *obj = eo_add(MY_CLASS, parent);
167 eo_unref(obj);
168 return obj; 167 return obj;
169} 168}
170 169
diff --git a/src/lib/elm_hover.c b/src/lib/elm_hover.c
index a9c9e9f2f..ecb2e2288 100644
--- a/src/lib/elm_hover.c
+++ b/src/lib/elm_hover.c
@@ -629,7 +629,6 @@ elm_hover_add(Evas_Object *parent)
629{ 629{
630 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 630 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
631 Evas_Object *obj = eo_add(MY_CLASS, parent); 631 Evas_Object *obj = eo_add(MY_CLASS, parent);
632 eo_unref(obj);
633 return obj; 632 return obj;
634} 633}
635 634
diff --git a/src/lib/elm_icon.c b/src/lib/elm_icon.c
index 7720dc63c..4af3b7a8e 100644
--- a/src/lib/elm_icon.c
+++ b/src/lib/elm_icon.c
@@ -689,7 +689,6 @@ elm_icon_add(Evas_Object *parent)
689{ 689{
690 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 690 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
691 Evas_Object *obj = eo_add(MY_CLASS, parent); 691 Evas_Object *obj = eo_add(MY_CLASS, parent);
692 eo_unref(obj);
693 return obj; 692 return obj;
694} 693}
695 694
diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index 89ac6622f..c57e6efc6 100644
--- a/src/lib/elm_image.c
+++ b/src/lib/elm_image.c
@@ -728,7 +728,6 @@ elm_image_add(Evas_Object *parent)
728{ 728{
729 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 729 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
730 Evas_Object *obj = eo_add(MY_CLASS, parent); 730 Evas_Object *obj = eo_add(MY_CLASS, parent);
731 eo_unref(obj);
732 return obj; 731 return obj;
733} 732}
734 733
diff --git a/src/lib/elm_index.c b/src/lib/elm_index.c
index cf66fe0a1..a94aa0728 100644
--- a/src/lib/elm_index.c
+++ b/src/lib/elm_index.c
@@ -1075,7 +1075,6 @@ elm_index_add(Evas_Object *parent)
1075{ 1075{
1076 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1076 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1077 Evas_Object *obj = eo_add(MY_CLASS, parent); 1077 Evas_Object *obj = eo_add(MY_CLASS, parent);
1078 eo_unref(obj);
1079 return obj; 1078 return obj;
1080} 1079}
1081 1080
diff --git a/src/lib/elm_interface_scrollable.c b/src/lib/elm_interface_scrollable.c
index 7a43d4cee..c1793a70a 100644
--- a/src/lib/elm_interface_scrollable.c
+++ b/src/lib/elm_interface_scrollable.c
@@ -209,7 +209,6 @@ static Evas_Object *
209_elm_pan_add(Evas *evas) 209_elm_pan_add(Evas *evas)
210{ 210{
211 Evas_Object *obj = eo_add(MY_PAN_CLASS, evas); 211 Evas_Object *obj = eo_add(MY_PAN_CLASS, evas);
212 eo_unref(obj);
213 return obj; 212 return obj;
214} 213}
215 214
diff --git a/src/lib/elm_inwin.c b/src/lib/elm_inwin.c
index 50311d482..cf6a21cec 100644
--- a/src/lib/elm_inwin.c
+++ b/src/lib/elm_inwin.c
@@ -100,7 +100,6 @@ elm_win_inwin_add(Evas_Object *parent)
100{ 100{
101 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 101 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
102 Evas_Object *obj = eo_add(MY_CLASS, parent); 102 Evas_Object *obj = eo_add(MY_CLASS, parent);
103 eo_unref(obj);
104 return obj; 103 return obj;
105} 104}
106 105
diff --git a/src/lib/elm_label.c b/src/lib/elm_label.c
index c206b4738..dc938f2f1 100644
--- a/src/lib/elm_label.c
+++ b/src/lib/elm_label.c
@@ -404,8 +404,6 @@ elm_label_add(Evas_Object *parent)
404{ 404{
405 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 405 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
406 Evas_Object *obj = eo_add(MY_CLASS, parent); 406 Evas_Object *obj = eo_add(MY_CLASS, parent);
407
408 eo_unref(obj);
409 return obj; 407 return obj;
410} 408}
411 409
diff --git a/src/lib/elm_layout.c b/src/lib/elm_layout.c
index 4e4c46a0d..59e041046 100644
--- a/src/lib/elm_layout.c
+++ b/src/lib/elm_layout.c
@@ -1682,7 +1682,6 @@ elm_layout_add(Evas_Object *parent)
1682{ 1682{
1683 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1683 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1684 Evas_Object *obj = eo_add(MY_CLASS, parent); 1684 Evas_Object *obj = eo_add(MY_CLASS, parent);
1685 eo_unref(obj);
1686 return obj; 1685 return obj;
1687} 1686}
1688 1687
diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index 63fdbbb7c..795375b4e 100644
--- a/src/lib/elm_list.c
+++ b/src/lib/elm_list.c
@@ -2414,7 +2414,6 @@ elm_list_add(Evas_Object *parent)
2414{ 2414{
2415 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 2415 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
2416 Evas_Object *obj = eo_add(MY_CLASS, parent); 2416 Evas_Object *obj = eo_add(MY_CLASS, parent);
2417 eo_unref(obj);
2418 return obj; 2417 return obj;
2419} 2418}
2420 2419
diff --git a/src/lib/elm_map.c b/src/lib/elm_map.c
index a2f127b65..2bd787e57 100644
--- a/src/lib/elm_map.c
+++ b/src/lib/elm_map.c
@@ -4196,7 +4196,6 @@ elm_map_add(Evas_Object *parent)
4196{ 4196{
4197 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 4197 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
4198 Evas_Object *obj = eo_add(MY_CLASS, parent); 4198 Evas_Object *obj = eo_add(MY_CLASS, parent);
4199 eo_unref(obj);
4200 return obj; 4199 return obj;
4201} 4200}
4202 4201
diff --git a/src/lib/elm_mapbuf.c b/src/lib/elm_mapbuf.c
index cbd76ef16..367f99e79 100644
--- a/src/lib/elm_mapbuf.c
+++ b/src/lib/elm_mapbuf.c
@@ -289,7 +289,6 @@ elm_mapbuf_add(Evas_Object *parent)
289{ 289{
290 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 290 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
291 Evas_Object *obj = eo_add(MY_CLASS, parent); 291 Evas_Object *obj = eo_add(MY_CLASS, parent);
292 eo_unref(obj);
293 return obj; 292 return obj;
294} 293}
295 294
diff --git a/src/lib/elm_menu.c b/src/lib/elm_menu.c
index e3b9da8c3..d103393d7 100644
--- a/src/lib/elm_menu.c
+++ b/src/lib/elm_menu.c
@@ -747,7 +747,6 @@ elm_menu_add(Evas_Object *parent)
747{ 747{
748 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 748 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
749 Evas_Object *obj = eo_add(MY_CLASS, parent); 749 Evas_Object *obj = eo_add(MY_CLASS, parent);
750 eo_unref(obj);
751 return obj; 750 return obj;
752} 751}
753 752
diff --git a/src/lib/elm_notify.c b/src/lib/elm_notify.c
index 1ecb66ffd..60307a19c 100644
--- a/src/lib/elm_notify.c
+++ b/src/lib/elm_notify.c
@@ -479,7 +479,6 @@ elm_notify_add(Evas_Object *parent)
479{ 479{
480 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 480 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
481 Evas_Object *obj = eo_add(MY_CLASS, parent); 481 Evas_Object *obj = eo_add(MY_CLASS, parent);
482 eo_unref(obj);
483 return obj; 482 return obj;
484} 483}
485 484
diff --git a/src/lib/elm_panel.c b/src/lib/elm_panel.c
index e1c8c0c43..0784c49e2 100644
--- a/src/lib/elm_panel.c
+++ b/src/lib/elm_panel.c
@@ -1083,7 +1083,6 @@ elm_panel_add(Evas_Object *parent)
1083{ 1083{
1084 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1084 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1085 Evas_Object *obj = eo_add(MY_CLASS, parent); 1085 Evas_Object *obj = eo_add(MY_CLASS, parent);
1086 eo_unref(obj);
1087 1086
1088 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL); 1087 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL);
1089 wd->highlight_root = EINA_TRUE; 1088 wd->highlight_root = EINA_TRUE;
diff --git a/src/lib/elm_panes.c b/src/lib/elm_panes.c
index dfb6e828c..5c0bc1ab3 100644
--- a/src/lib/elm_panes.c
+++ b/src/lib/elm_panes.c
@@ -322,7 +322,6 @@ elm_panes_add(Evas_Object *parent)
322{ 322{
323 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 323 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
324 Evas_Object *obj = eo_add(MY_CLASS, parent); 324 Evas_Object *obj = eo_add(MY_CLASS, parent);
325 eo_unref(obj);
326 return obj; 325 return obj;
327} 326}
328 327
diff --git a/src/lib/elm_photo.c b/src/lib/elm_photo.c
index 2bf583846..c14c3579b 100644
--- a/src/lib/elm_photo.c
+++ b/src/lib/elm_photo.c
@@ -309,7 +309,6 @@ elm_photo_add(Evas_Object *parent)
309{ 309{
310 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 310 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
311 Evas_Object *obj = eo_add(MY_CLASS, parent); 311 Evas_Object *obj = eo_add(MY_CLASS, parent);
312 eo_unref(obj);
313 return obj; 312 return obj;
314} 313}
315 314
diff --git a/src/lib/elm_photocam.c b/src/lib/elm_photocam.c
index 88b02f1f8..1fb3c10cc 100644
--- a/src/lib/elm_photocam.c
+++ b/src/lib/elm_photocam.c
@@ -1414,7 +1414,6 @@ elm_photocam_add(Evas_Object *parent)
1414{ 1414{
1415 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 1415 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
1416 Evas_Object *obj = eo_add(MY_CLASS, parent); 1416 Evas_Object *obj = eo_add(MY_CLASS, parent);
1417 eo_unref(obj);
1418 return obj; 1417 return obj;
1419} 1418}
1420 1419
diff --git a/src/lib/elm_plug.c b/src/lib/elm_plug.c
index 1beabf1e6..a6680981e 100644
--- a/src/lib/elm_plug.c
+++ b/src/lib/elm_plug.c
@@ -139,7 +139,6 @@ elm_plug_add(Evas_Object *parent)
139{ 139{
140 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 140 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
141 Evas_Object *obj = eo_add(MY_CLASS, parent); 141 Evas_Object *obj = eo_add(MY_CLASS, parent);
142 eo_unref(obj);
143 return obj; 142 return obj;
144} 143}
145 144
diff --git a/src/lib/elm_prefs.c b/src/lib/elm_prefs.c
index 99b4400c3..12e430293 100644
--- a/src/lib/elm_prefs.c
+++ b/src/lib/elm_prefs.c
@@ -511,7 +511,6 @@ elm_prefs_add(Evas_Object *parent)
511 } 511 }
512 512
513 Evas_Object *obj = eo_add(MY_CLASS, parent); 513 Evas_Object *obj = eo_add(MY_CLASS, parent);
514 eo_unref(obj);
515 return obj; 514 return obj;
516} 515}
517 516
diff --git a/src/lib/elm_progressbar.c b/src/lib/elm_progressbar.c
index 816341170..fd85bc61c 100644
--- a/src/lib/elm_progressbar.c
+++ b/src/lib/elm_progressbar.c
@@ -326,7 +326,6 @@ elm_progressbar_add(Evas_Object *parent)
326{ 326{
327 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 327 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
328 Evas_Object *obj = eo_add(MY_CLASS, parent); 328 Evas_Object *obj = eo_add(MY_CLASS, parent);
329 eo_unref(obj);
330 return obj; 329 return obj;
331} 330}
332 331
diff --git a/src/lib/elm_radio.c b/src/lib/elm_radio.c
index 045ce2917..0a4741e33 100644
--- a/src/lib/elm_radio.c
+++ b/src/lib/elm_radio.c
@@ -320,7 +320,6 @@ elm_radio_add(Evas_Object *parent)
320{ 320{
321 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 321 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
322 Evas_Object *obj = eo_add(MY_CLASS, parent); 322 Evas_Object *obj = eo_add(MY_CLASS, parent);
323 eo_unref(obj);
324 return obj; 323 return obj;
325} 324}
326 325
diff --git a/src/lib/elm_route.c b/src/lib/elm_route.c
index 649e25cae..605eed84e 100644
--- a/src/lib/elm_route.c
+++ b/src/lib/elm_route.c
@@ -179,7 +179,6 @@ elm_route_add(Evas_Object *parent)
179{ 179{
180 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 180 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
181 Evas_Object *obj = eo_add(MY_CLASS, parent); 181 Evas_Object *obj = eo_add(MY_CLASS, parent);
182 eo_unref(obj);
183 return obj; 182 return obj;
184} 183}
185 184
diff --git a/src/lib/elm_scroller.c b/src/lib/elm_scroller.c
index 64c6e0954..fc26e68d1 100644
--- a/src/lib/elm_scroller.c
+++ b/src/lib/elm_scroller.c
@@ -771,7 +771,6 @@ elm_scroller_add(Evas_Object *parent)
771{ 771{
772 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 772 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
773 Evas_Object *obj = eo_add(MY_CLASS, parent); 773 Evas_Object *obj = eo_add(MY_CLASS, parent);
774 eo_unref(obj);
775 return obj; 774 return obj;
776} 775}
777 776
diff --git a/src/lib/elm_segment_control.c b/src/lib/elm_segment_control.c
index ed0c8bb2d..c256ceb2f 100644
--- a/src/lib/elm_segment_control.c
+++ b/src/lib/elm_segment_control.c
@@ -679,7 +679,6 @@ elm_segment_control_add(Evas_Object *parent)
679{ 679{
680 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 680 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
681 Evas_Object *obj = eo_add(MY_CLASS, parent); 681 Evas_Object *obj = eo_add(MY_CLASS, parent);
682 eo_unref(obj);
683 return obj; 682 return obj;
684} 683}
685 684
diff --git a/src/lib/elm_separator.c b/src/lib/elm_separator.c
index 736a34687..fd95d8a25 100644
--- a/src/lib/elm_separator.c
+++ b/src/lib/elm_separator.c
@@ -65,7 +65,6 @@ elm_separator_add(Evas_Object *parent)
65{ 65{
66 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 66 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
67 Evas_Object *obj = eo_add(MY_CLASS, parent); 67 Evas_Object *obj = eo_add(MY_CLASS, parent);
68 eo_unref(obj);
69 return obj; 68 return obj;
70} 69}
71 70
diff --git a/src/lib/elm_slider.c b/src/lib/elm_slider.c
index e437bb155..63eb42909 100644
--- a/src/lib/elm_slider.c
+++ b/src/lib/elm_slider.c
@@ -916,7 +916,6 @@ elm_slider_add(Evas_Object *parent)
916{ 916{
917 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 917 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
918 Evas_Object *obj = eo_add(MY_CLASS, parent); 918 Evas_Object *obj = eo_add(MY_CLASS, parent);
919 eo_unref(obj);
920 return obj; 919 return obj;
921} 920}
922 921
diff --git a/src/lib/elm_slideshow.c b/src/lib/elm_slideshow.c
index 890d2280b..ae4d00bdc 100644
--- a/src/lib/elm_slideshow.c
+++ b/src/lib/elm_slideshow.c
@@ -382,7 +382,6 @@ elm_slideshow_add(Evas_Object *parent)
382{ 382{
383 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 383 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
384 Evas_Object *obj = eo_add(MY_CLASS, parent); 384 Evas_Object *obj = eo_add(MY_CLASS, parent);
385 eo_unref(obj);
386 return obj; 385 return obj;
387} 386}
388 387
diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c
index afba203a6..20b1c0cec 100644
--- a/src/lib/elm_spinner.c
+++ b/src/lib/elm_spinner.c
@@ -850,7 +850,6 @@ elm_spinner_add(Evas_Object *parent)
850{ 850{
851 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 851 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
852 Evas_Object *obj = eo_add(MY_CLASS, parent); 852 Evas_Object *obj = eo_add(MY_CLASS, parent);
853 eo_unref(obj);
854 return obj; 853 return obj;
855} 854}
856 855
diff --git a/src/lib/elm_table.c b/src/lib/elm_table.c
index e912c8af8..b39db12b8 100644
--- a/src/lib/elm_table.c
+++ b/src/lib/elm_table.c
@@ -218,7 +218,6 @@ elm_table_add(Evas_Object *parent)
218{ 218{
219 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 219 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
220 Evas_Object *obj = eo_add(MY_CLASS, parent); 220 Evas_Object *obj = eo_add(MY_CLASS, parent);
221 eo_unref(obj);
222 return obj; 221 return obj;
223} 222}
224 223
diff --git a/src/lib/elm_thumb.c b/src/lib/elm_thumb.c
index 7bee347b4..1b3749c53 100644
--- a/src/lib/elm_thumb.c
+++ b/src/lib/elm_thumb.c
@@ -588,7 +588,6 @@ elm_thumb_add(Evas_Object *parent)
588{ 588{
589 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 589 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
590 Evas_Object *obj = eo_add(MY_CLASS, parent); 590 Evas_Object *obj = eo_add(MY_CLASS, parent);
591 eo_unref(obj);
592 return obj; 591 return obj;
593} 592}
594 593
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index bb6bb6a80..82793e4c9 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -2982,7 +2982,6 @@ elm_toolbar_add(Evas_Object *parent)
2982{ 2982{
2983 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 2983 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
2984 Evas_Object *obj = eo_add(MY_CLASS, parent); 2984 Evas_Object *obj = eo_add(MY_CLASS, parent);
2985 eo_unref(obj);
2986 return obj; 2985 return obj;
2987} 2986}
2988 2987
diff --git a/src/lib/elm_video.c b/src/lib/elm_video.c
index 20e1dc848..c4b25eea2 100644
--- a/src/lib/elm_video.c
+++ b/src/lib/elm_video.c
@@ -276,7 +276,6 @@ elm_video_add(Evas_Object *parent)
276{ 276{
277 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 277 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
278 Evas_Object *obj = eo_add(MY_CLASS, parent); 278 Evas_Object *obj = eo_add(MY_CLASS, parent);
279 eo_unref(obj);
280 return obj; 279 return obj;
281} 280}
282 281
diff --git a/src/lib/elm_web2.c b/src/lib/elm_web2.c
index 42506eabf..ad4aa3f6a 100644
--- a/src/lib/elm_web2.c
+++ b/src/lib/elm_web2.c
@@ -721,7 +721,6 @@ elm_web_add(Evas_Object *parent)
721{ 721{
722 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 722 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
723 Evas_Object *obj = eo_add(MY_CLASS, parent); 723 Evas_Object *obj = eo_add(MY_CLASS, parent);
724 eo_unref(obj);
725 return obj; 724 return obj;
726} 725}
727 726
diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index c77482f44..1e6b9985e 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -2868,7 +2868,6 @@ elm_win_add(Evas_Object *parent,
2868 Elm_Win_Type type) 2868 Elm_Win_Type type)
2869{ 2869{
2870 Evas_Object *obj = eo_add(MY_CLASS, parent, elm_obj_win_constructor(name, type)); 2870 Evas_Object *obj = eo_add(MY_CLASS, parent, elm_obj_win_constructor(name, type));
2871 eo_unref(obj);
2872 return obj; 2871 return obj;
2873} 2872}
2874 2873
@@ -3293,6 +3292,16 @@ _elm_win_constructor(Eo *obj, Elm_Win_Data *sd, const char *name, Elm_Win_Type t
3293 } 3292 }
3294 3293
3295 eo_do(obj, eo_parent_set(ecore_evas_get(tmp_sd.ee))); 3294 eo_do(obj, eo_parent_set(ecore_evas_get(tmp_sd.ee)));
3295
3296 /* XXX: This hack is needed because we parent ourselves to an inside object.
3297 * That should be fixed, and then this can be fixed.
3298 * Only needed if there wasn't a parent, because if there was, we are just
3299 * replacing it. */
3300 if (!parent)
3301 {
3302 eo_unref(obj);
3303 }
3304
3296 eo_do_super(obj, MY_CLASS, eo_constructor()); 3305 eo_do_super(obj, MY_CLASS, eo_constructor());
3297 eo_do(obj, 3306 eo_do(obj,
3298 evas_obj_type_set(MY_CLASS_NAME_LEGACY), 3307 evas_obj_type_set(MY_CLASS_NAME_LEGACY),