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; }