# HG changeset patch # User nadvornik # Date 1232799301 0 # Node ID ecfe3732f00a70d7a16de66679a0f0d99b53b967 # Parent 6ccad430c4cbef90afe24aee6a82d53142dd9d1e fixed glib warning diff -r 6ccad430c4cb -r ecfe3732f00a src/image.c --- a/src/image.c Sat Jan 24 10:09:29 2009 +0000 +++ b/src/image.c Sat Jan 24 12:15:01 2009 +0000 @@ -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) {