[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33473] trunk/blender/source/blender/ editors/space_file/filelist.c: Fixed memory leak in thumbnail_joblist_free: last image in loadimages weren't

Sergey Sharybin g.ulairi at gmail.com
Sat Dec 4 19:34:31 CET 2010


Revision: 33473
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33473
Author:   nazgul
Date:     2010-12-04 19:34:31 +0100 (Sat, 04 Dec 2010)

Log Message:
-----------
Fixed memory leak in thumbnail_joblist_free: last image in loadimages weren't
freed even if it's not copied to the filelist

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_file/filelist.c

Modified: trunk/blender/source/blender/editors/space_file/filelist.c
===================================================================
--- trunk/blender/source/blender/editors/space_file/filelist.c	2010-12-04 16:02:04 UTC (rev 33472)
+++ trunk/blender/source/blender/editors/space_file/filelist.c	2010-12-04 18:34:31 UTC (rev 33473)
@@ -1136,11 +1136,10 @@
 	FileImage* limg = tj->loadimages.first;
 	
 	/* free the images not yet copied to the filelist -> these will get freed with the filelist */
-	while (limg != tj->loadimages.last) {
+	for( ; limg; limg= limg->next) {
 		if ((limg->img) && (!limg->done)) {
 			IMB_freeImBuf(limg->img);
 		}
-		limg = limg->next;
 	}
 	BLI_freelistN(&tj->loadimages);
 }





More information about the Bf-blender-cvs mailing list