[Xfce4-commits] <ristretto:master> Plug memory-leak
Stephan Arts
noreply at xfce.org
Tue Aug 9 20:44:01 CEST 2011
Updating branch refs/heads/master
to ca1f2f4a3c888b2bd5dacca697048432af812a44 (commit)
from de4a861c28d63ce088dd99cb037153f2096f9fec (commit)
commit ca1f2f4a3c888b2bd5dacca697048432af812a44
Author: Stephan Arts <stephan at xfce.org>
Date: Tue Aug 9 20:42:39 2011 +0200
Plug memory-leak
src/image_viewer.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/image_viewer.c b/src/image_viewer.c
index e83169e..a77b265 100644
--- a/src/image_viewer.c
+++ b/src/image_viewer.c
@@ -1216,6 +1216,12 @@ cb_rstto_image_loader_area_prepared (GdkPixbufLoader *loader, RsttoImageViewerTr
}
else
{
+
+ if (viewer->priv->pixbuf)
+ {
+ g_object_unref (viewer->priv->pixbuf);
+ viewer->priv->pixbuf = NULL;
+ }
/* This is a single-frame image, there is no need to copy the pixbuf since it won't change.
*/
viewer->priv->pixbuf = gdk_pixbuf_animation_iter_get_pixbuf (viewer->priv->iter);
More information about the Xfce4-commits
mailing list