diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-12-04 21:34:31 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-12-04 21:34:31 +0300 |
commit | a3bac149a151f9a856150e90782688e4c35a631f (patch) | |
tree | c4edccde16ad3c10bb3cb93dd2431f2627004480 /source/blender/editors/space_file | |
parent | b3eea07e8472eb68c43110c44982f82900a41b20 (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.c | 3 |
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); } |