Revision: 1346
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1346&view=rev
Author:   nadvornik
Date:     2009-01-24 12:15:01 +0000 (Sat, 24 Jan 2009)

Log Message:
-----------
fixed glib warning

Modified Paths:
--------------
    trunk/src/image.c

Modified: trunk/src/image.c
===================================================================
--- trunk/src/image.c   2009-01-24 10:09:29 UTC (rev 1345)
+++ trunk/src/image.c   2009-01-24 12:15:01 UTC (rev 1346)
@@ -1005,7 +1005,7 @@
 
        /* read_exif and similar functions can actually notice that the file 
has changed and triger a notification
        that removes the pixbuf from cache and unref it. Therefore we must ref 
it here before it is taken over by the renderer. */
-       g_object_ref(pixbuf); 
+       if (pixbuf) g_object_ref(pixbuf); 
        
        if (imd->image_fd && imd->image_fd->user_orientation)
                imd->orientation = imd->image_fd->user_orientation;
@@ -1045,7 +1045,7 @@
                pixbuf_renderer_set_orientation((PixbufRenderer *)imd->pr, 
imd->orientation);
                }
 
-       g_object_unref(pixbuf);
+       if (pixbuf) g_object_unref(pixbuf);
 
        if (imd->color_profile_enable)
                {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to