Fix BLI_buffer_reinit not clearing static flag
authorCampbell Barton <ideasman42@gmail.com>
Wed, 23 Dec 2015 14:51:45 +0000 (01:51 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 23 Dec 2015 14:51:45 +0000 (01:51 +1100)
source/blender/blenlib/intern/buffer.c

index e2172148d1edec69ac84e080fdc4c76703faaf2d..fb1b733fc8a0019637501ef6c5d4fa6fb236c998 100644 (file)
@@ -123,6 +123,7 @@ void BLI_buffer_reinit(BLI_Buffer *buffer, const size_t new_count)
                        buffer->alloc_count = new_count;
                }
 
+               buffer->flag &= ~BLI_BUFFER_USE_STATIC;
                buffer->data = buffer_alloc(buffer, buffer->alloc_count);
        }
        else {