Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2010-12-04 21:34:31 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2010-12-04 21:34:31 +0300
commita3bac149a151f9a856150e90782688e4c35a631f (patch)
treec4edccde16ad3c10bb3cb93dd2431f2627004480 /source/blender/editors/space_file
parentb3eea07e8472eb68c43110c44982f82900a41b20 (diff)
Fixed memory leak in thumbnail_joblist_free: last image in loadimages weren't
freed even if it's not copied to the filelist
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/filelist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index c476b5d8cde..476a887ee87 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -1136,11 +1136,10 @@ static void thumbnail_joblist_free(ThumbnailJob *tj)
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);
}