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:
authorCampbell Barton <ideasman42@gmail.com>2010-10-29 11:11:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-10-29 11:11:45 +0400
commit6a9a49f8afe1e5825dc182eedff57a1c4d4290fe (patch)
tree9eef6bbce5f87cc93722131e38ca7c04afc68d13 /source/blender/makesrna/intern/rna_image.c
parentb4a64185180737ddf60706e47d8f7630ee295266 (diff)
bugfix for grease pencil freeing order.
it was freed before objects which would then decrease its usercount - accessing freed memory. Also fixed error in own last commit.
Diffstat (limited to 'source/blender/makesrna/intern/rna_image.c')
-rw-r--r--source/blender/makesrna/intern/rna_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c
index 4ac7624e731..62e7b516e9e 100644
--- a/source/blender/makesrna/intern/rna_image.c
+++ b/source/blender/makesrna/intern/rna_image.c
@@ -181,7 +181,7 @@ static void rna_Image_file_format_set(PointerRNA *ptr, int value)
*/
/* to be safe change all buffer file types */
- for(ibuf= image->ibufs.first; ibuf; ibuf->next) {
+ for(ibuf= image->ibufs.first; ibuf; ibuf= ibuf->next) {
ibuf->ftype= ftype;
}
}