changeset 2400:0e0926ca9f8b

Set animation NULL after free on static images.
author Christian Heckendorf <heckendorfc@gmail.com>
date Sat, 03 Dec 2016 11:24:36 -0500
parents a3038f034c47
children eb6d9ba8a759
files src/layout_image.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout_image.c	Sat Aug 27 20:34:00 2016 -0400
+++ b/src/layout_image.c	Sat Dec 03 11:24:36 2016 -0500
@@ -391,6 +391,7 @@
 		!(lw->animation->iter = gdk_pixbuf_animation_get_iter(lw->animation->gpa,NULL)))
 		{
 		image_animation_data_free(lw->animation);
+		lw->animation = NULL;
 		return FALSE;
 		}