summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorperepelits.m <perepelits.m@samsung.com>2016-03-04 15:58:29 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-03-04 16:09:51 -0800
commit74161be6f8568e6b18661a876c32738a191e529f (patch)
tree05900bd212ebc396645439f8abd81294574aeb65 /src
parent41b8a320a01aa891cbe8e3b5350eb878f07817cc (diff)
Evas: fix camera node adding to scene
Summary: While making new changes after rewieving D3710 we met this bug again, removing eo_unref is the best way to fix it because _eo_ref_replace from D3021 makes nothing special. Reviewers: cedric, raster, Hermet Subscribers: jpeg, artem.popov Differential Revision: https://phab.enlightenment.org/D3745 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_scene.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_canvas3d_scene.c b/src/lib/evas/canvas/evas_canvas3d_scene.c
index 1b9ea30..cb7ffc3 100644
--- a/src/lib/evas/canvas/evas_canvas3d_scene.c
+++ b/src/lib/evas/canvas/evas_canvas3d_scene.c
@@ -119,14 +119,12 @@ _evas_canvas3d_scene_camera_node_set(Eo *obj, Evas_Canvas3D_Scene_Data *pd, Evas
119 if (pd->camera_node) 119 if (pd->camera_node)
120 { 120 {
121 evas_canvas3d_node_scene_camera_del(pd->camera_node, obj); 121 evas_canvas3d_node_scene_camera_del(pd->camera_node, obj);
122 eo_unref(pd->camera_node);
123 } 122 }
124 123
125 pd->camera_node = node; 124 pd->camera_node = node;
126 125
127 if (node) 126 if (node)
128 { 127 {
129 eo_unref(node);
130 evas_canvas3d_node_scene_camera_add(node, obj); 128 evas_canvas3d_node_scene_camera_add(node, obj);
131 } 129 }
132 130