Silence g_object_unref failed assertions.
authorChristian Heckendorf <heckendorfc@gmail.com>
Sun, 28 Aug 2016 00:34:00 +0000 (20:34 -0400)
committerChristian Heckendorf <heckendorfc@gmail.com>
Sun, 28 Aug 2016 00:34:00 +0000 (20:34 -0400)
src/layout_image.c

index 83d659b..c72d98c 100644 (file)
@@ -278,8 +278,8 @@ static gboolean layout_image_slideshow_continue_check(LayoutWindow *lw)
 static void image_animation_data_free(AnimationData *fd)
 {
        if(!fd) return;
-       g_object_unref(fd->iter);
-       g_object_unref(fd->gpa);
+       if(fd->iter) g_object_unref(fd->iter);
+       if(fd->gpa) g_object_unref(fd->gpa);
        g_free(fd);
 }