summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-03-16 09:24:20 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-03-16 09:24:20 -0400
commit7cbd8c7b93d7e78ede8d79029ccf468003d44199 (patch)
tree7f2f4c3110adb3b19f3b438a0aba6aa7a66ac32b /src
parentdf12843512b4304410746411e10b6dc986e24989 (diff)
evas: Fix incorrect expression in efl_canvas_surface_x11
This patch fixes an issue detected by Coverity where 'obj' is written twice with the same value CID1353363 @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/canvas/efl_canvas_surface_x11.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_surface_x11.c b/src/lib/evas/canvas/efl_canvas_surface_x11.c
index 1aab748861..5796b9eb0f 100644
--- a/src/lib/evas/canvas/efl_canvas_surface_x11.c
+++ b/src/lib/evas/canvas/efl_canvas_surface_x11.c
@@ -32,7 +32,9 @@ _efl_canvas_surface_x11_eo_base_constructor(Eo *eo, Efl_Canvas_Surface_X11_Data
32EOLIAN static void 32EOLIAN static void
33_efl_canvas_surface_x11_eo_base_destructor(Eo *eo, Efl_Canvas_Surface_X11_Data *pd) 33_efl_canvas_surface_x11_eo_base_destructor(Eo *eo, Efl_Canvas_Surface_X11_Data *pd)
34{ 34{
35 Evas_Object_Protected_Data *obj = obj = eo_data_scope_get(eo, EVAS_OBJECT_CLASS); 35 Evas_Object_Protected_Data *obj;
36
37 obj = eo_data_scope_get(eo, EVAS_OBJECT_CLASS);
36 38
37 ENFN->image_native_shutdown(ENDT, EVAS_NATIVE_SURFACE_X11); 39 ENFN->image_native_shutdown(ENDT, EVAS_NATIVE_SURFACE_X11);
38 eo_data_unref(eo, pd->base); 40 eo_data_unref(eo, pd->base);