[gnome-games] libgames-support: Plug a mem leak
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] libgames-support: Plug a mem leak
- Date: Fri, 13 Aug 2010 14:27:00 +0000 (UTC)
commit cdd2e42044fc8ffe5448efcb4fb345edebbb98b7
Author: Christian Persch <chpe gnome org>
Date: Fri Aug 13 16:26:45 2010 +0200
libgames-support: Plug a mem leak
libgames-support/games-preimage.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgames-support/games-preimage.c b/libgames-support/games-preimage.c
index 8c3c8a5..adaa9fe 100644
--- a/libgames-support/games-preimage.c
+++ b/libgames-support/games-preimage.c
@@ -169,6 +169,8 @@ games_preimage_render_cairo (GamesPreimage * preimage,
gdk_cairo_set_source_pixbuf (cr, pixbuf, 0, 0);
cairo_paint (cr);
cairo_restore (cr);
+
+ g_object_unref (pixbuf);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]