fix severe memory leak in recently changed gtk code. attn xrmx. must be ported to release branch.

This commit is contained in:
zeromus 2010-10-14 05:58:28 +00:00
parent fbd3bd438c
commit 1a42e8103b
1 changed files with 2 additions and 0 deletions

View File

@ -1222,6 +1222,8 @@ static gboolean ExposeDrawingArea (GtkWidget *widget, GdkEventExpose *event, gpo
if (nds_screen.orientation != ORIENT_SINGLE) {
gdk_cairo_set_source_pixbuf(cr, drawPixbuf, primaryOffsetX, primaryOffsetY);
}
g_object_unref(drawPixbuf); //drawPixbuf was never unref'd, so its ref count stayed above 0 and it was never freed
cairo_paint(cr);
cairo_destroy(cr);