[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26296] trunk/blender/source/blender/imbuf /intern/anim.c: Fix attempt to free already freed memory when loading an animation

Brecht Van Lommel brecht at blender.org
Tue Jan 26 14:17:29 CET 2010


Revision: 26296
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26296
Author:   blendix
Date:     2010-01-26 14:17:28 +0100 (Tue, 26 Jan 2010)

Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/imbuf/intern/anim.c

Modified: trunk/blender/source/blender/imbuf/intern/anim.c
===================================================================
--- trunk/blender/source/blender/imbuf/intern/anim.c	2010-01-26 12:12:31 UTC (rev 26295)
+++ trunk/blender/source/blender/imbuf/intern/anim.c	2010-01-26 13:17:28 UTC (rev 26296)
@@ -1060,7 +1060,9 @@
 		if (ibuf == NULL) {
 			return (0);
 		}
+
 		IMB_freeImBuf(ibuf); /* ???? */
+		ibuf= NULL;
 	}
 
 	if (position < 0) return(0);





More information about the Bf-blender-cvs mailing list