[eog] Small code fix



commit 2def5c1918f1e59647b161b8991bc67a2127f63f
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Thu Dec 30 20:58:47 2010 +0200

    Small code fix

 src/eog-image.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/eog-image.c b/src/eog-image.c
index 7299878..44da98f 100644
--- a/src/eog-image.c
+++ b/src/eog-image.c
@@ -1343,9 +1343,7 @@ eog_image_get_thumbnail (EogImage *img)
 	g_return_val_if_fail (EOG_IS_IMAGE (img), NULL);
 
 	if (img->priv->thumbnail != NULL) {
-		g_object_ref (img->priv->thumbnail);
-
-		return img->priv->thumbnail;
+		return g_object_ref (img->priv->thumbnail);
 	}
 
 	return NULL;



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