From 2df3e3745dfe2b419ccfcae3a80170f2c6ac0164 Mon Sep 17 00:00:00 2001 From: cedric Date: Wed, 17 Jun 2009 11:13:11 +0000 Subject: [PATCH] * ecore: Fix ecore_evas_x uninitialised variable. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@41069 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_evas/ecore_evas_x.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/lib/ecore_evas/ecore_evas_x.c b/src/lib/ecore_evas/ecore_evas_x.c index 7fe922c..122210c 100644 --- a/src/lib/ecore_evas/ecore_evas_x.c +++ b/src/lib/ecore_evas/ecore_evas_x.c @@ -353,9 +353,9 @@ _ecore_evas_x_resize_shape(Ecore_Evas *ee) if (ee->engine.x.mask) ecore_x_pixmap_free(ee->engine.x.mask); ee->engine.x.mask = ecore_x_pixmap_new(ee->prop.window, ee->w, ee->h, 1); foreground = 0; - ecore_x_gc_new(ee->engine.x.mask, - ECORE_X_GC_VALUE_MASK_FOREGROUND, - &foreground); + gc = ecore_x_gc_new(ee->engine.x.mask, + ECORE_X_GC_VALUE_MASK_FOREGROUND, + &foreground); ecore_x_drawable_rectangle_fill(ee->engine.x.mask, gc, 0, 0, ee->w, ee->h); ecore_x_gc_free(gc); @@ -375,9 +375,6 @@ _ecore_evas_x_resize_shape(Ecore_Evas *ee) einfo = (Evas_Engine_Info_Software_16_X11 *)evas_engine_info_get(ee->evas); if (einfo) { - GC gc; - XGCValues gcv; - if (ee->engine.x.mask) ecore_x_pixmap_free(ee->engine.x.mask); ee->engine.x.mask = ecore_x_pixmap_new(ee->prop.window, ee->w, ee->h, 1); einfo->info.mask = ee->engine.x.mask; -- 2.7.4