summaryrefslogtreecommitdiff
path: root/src/eom-image.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-25 23:58:10 +0200
committerinfirit <[email protected]>2014-07-26 12:17:20 +0200
commit99d1fc5f4d134d93c25702fd5ba12e10b874aa71 (patch)
tree850eb465db6579b1db68a0c97677103335bb65b2 /src/eom-image.c
parentd7d759bc0a4d8bf9d3d3487e75158284d6f200a7 (diff)
downloadeom-99d1fc5f4d134d93c25702fd5ba12e10b874aa71.tar.bz2
eom-99d1fc5f4d134d93c25702fd5ba12e10b874aa71.tar.xz
Small code fix
Based on eog commit 2def5c1918f1e59647b161b8991bc67a2127f63f From Claudio Saavedra <[email protected]>
Diffstat (limited to 'src/eom-image.c')
-rw-r--r--src/eom-image.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/eom-image.c b/src/eom-image.c
index d723abd..4651f1a 100644
--- a/src/eom-image.c
+++ b/src/eom-image.c
@@ -1340,9 +1340,7 @@ eom_image_get_thumbnail (EomImage *img)
g_return_val_if_fail (EOM_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;