Set animation NULL after free on static images.
authorChristian Heckendorf <heckendorfc@gmail.com>
Sat, 3 Dec 2016 16:24:36 +0000 (11:24 -0500)
committerChristian Heckendorf <heckendorfc@gmail.com>
Sat, 3 Dec 2016 16:24:36 +0000 (11:24 -0500)
src/layout_image.c

index c72d98c..e5e5659 100644 (file)
@@ -391,6 +391,7 @@ static gboolean layout_image_animate_new_file(LayoutWindow *lw)
                !(lw->animation->iter = gdk_pixbuf_animation_get_iter(lw->animation->gpa,NULL)))
                {
                image_animation_data_free(lw->animation);
+               lw->animation = NULL;
                return FALSE;
                }