From 50a7cdd1161764b60c87f6deabd2bba38a400de6 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 26 Jan 2010 13:17:28 +0000 Subject: Fix attempt to free already freed memory when loading an animation in the sequencer, was in the code that tests if it's a file that it understands. Didn't cause a crash here though, just warning. --- source/blender/imbuf/intern/anim.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/imbuf/intern') diff --git a/source/blender/imbuf/intern/anim.c b/source/blender/imbuf/intern/anim.c index effc91739c0..4d573fd15b3 100644 --- a/source/blender/imbuf/intern/anim.c +++ b/source/blender/imbuf/intern/anim.c @@ -1060,7 +1060,9 @@ struct ImBuf * IMB_anim_absolute(struct anim * anim, int position) { if (ibuf == NULL) { return (0); } + IMB_freeImBuf(ibuf); /* ???? */ + ibuf= NULL; } if (position < 0) return(0); -- cgit v1.2.3