[gthumb: 30/129] use the right function to destroy a cairo surface



commit 0f1ed43e5fde8cfe85d9c99729e0a49587b6a8be
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Apr 15 20:52:48 2011 +0200

    use the right function to destroy a cairo surface

 gthumb/gth-image-selector.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-image-selector.c b/gthumb/gth-image-selector.c
index 71c4b22..d065a66 100644
--- a/gthumb/gth-image-selector.c
+++ b/gthumb/gth-image-selector.c
@@ -1503,7 +1503,7 @@ gth_image_selector_image_changed (GthImageViewerTool *base)
 {
 	GthImageSelector *self = GTH_IMAGE_SELECTOR (base);
 
-	_g_object_unref (self->priv->surface);
+	cairo_surface_destroy (self->priv->surface);
 	self->priv->surface = gth_image_viewer_get_current_image (self->priv->viewer);
 
 	if (self->priv->surface == NULL) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]