summaryrefslogtreecommitdiff
path: root/src/examples/evas/evas-3d-cube2.c
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-05-07 19:36:45 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-05-07 19:36:45 +0900
commitc84668d2c393b6c51b290569c99cda0424e43f0a (patch)
tree5876ff8cf7eeadedffc27fd8f53f7a71b3277de8 /src/examples/evas/evas-3d-cube2.c
parent69c9df439e45da8136a69fe1b5db7085c7b2461e (diff)
evas/evas3d: call eo_unref() after eo_add().
since eo default ref count is 1 and increased by canvas parent again, they should be unref() called if they wanna deleted automatically. I wonder if evas unref the objects while it removes the objects from it's list, then user don't need to call eo_unref() manually which may cause a mistake in usage.
Diffstat (limited to 'src/examples/evas/evas-3d-cube2.c')
-rw-r--r--src/examples/evas/evas-3d-cube2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/examples/evas/evas-3d-cube2.c b/src/examples/evas/evas-3d-cube2.c
index cdf01c9..65672ab 100644
--- a/src/examples/evas/evas-3d-cube2.c
+++ b/src/examples/evas/evas-3d-cube2.c
@@ -313,6 +313,7 @@ main(void)
313 313
314 /* Add a background rectangle objects. */ 314 /* Add a background rectangle objects. */
315 background = eo_add(EVAS_OBJ_RECTANGLE_CLASS, evas); 315 background = eo_add(EVAS_OBJ_RECTANGLE_CLASS, evas);
316 eo_unref(background);
316 eo_do(background, 317 eo_do(background,
317 evas_obj_color_set(0, 0, 0, 255), 318 evas_obj_color_set(0, 0, 0, 255),
318 evas_obj_size_set(WIDTH, HEIGHT), 319 evas_obj_size_set(WIDTH, HEIGHT),