From 9f10047113848a7585448236e22f2b5d3b0a1ee7 Mon Sep 17 00:00:00 2001 From: riccardom Date: Sat, 15 May 2010 15:59:16 +0000 Subject: [PATCH] Uh, it looks to me that we should unref the gdk pixbuf unconditionally. --- desmume/src/gtk/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/desmume/src/gtk/main.cpp b/desmume/src/gtk/main.cpp index cff3f05c9..42ebd2c36 100644 --- a/desmume/src/gtk/main.cpp +++ b/desmume/src/gtk/main.cpp @@ -1207,9 +1207,7 @@ static gboolean ExposeDrawingArea (GtkWidget *widget, GdkEventExpose *event, gpo GDK_RGB_DITHER_NONE, 0,0); } - drawPixbuf = NULL; - if ((hratio != 1.0) || (vratio != 1.0)) - g_object_unref(resizedPixbuf); + g_object_unref(drawPixbuf); return TRUE; }