diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-29 11:11:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-29 11:11:45 +0400 |
commit | 6a9a49f8afe1e5825dc182eedff57a1c4d4290fe (patch) | |
tree | 9eef6bbce5f87cc93722131e38ca7c04afc68d13 /source/blender/makesrna/intern/rna_image.c | |
parent | b4a64185180737ddf60706e47d8f7630ee295266 (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.c | 2 |
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; } } |