diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-03-03 02:20:27 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-03-03 02:20:27 +0400 |
commit | 0be5cd051da224d51f946ae3ac867fa5fe36d450 (patch) | |
tree | e9ad529df0b4944c91b4ef99f1f99bf1491a818d /source/blender/freestyle/intern/blender_interface | |
parent | 51460e7789822bc6fd42ab7fed3fe9c84c9c27f4 (diff) |
Moved operations on blend file data from C++ class destructor to a specific method
for releasing resources. Based on review comment from Campbell.
Diffstat (limited to 'source/blender/freestyle/intern/blender_interface')
-rw-r--r-- | source/blender/freestyle/intern/blender_interface/BlenderStyleModule.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/blender_interface/BlenderStyleModule.h b/source/blender/freestyle/intern/blender_interface/BlenderStyleModule.h index 4c6f7e02722..7a1ce0a082b 100644 --- a/source/blender/freestyle/intern/blender_interface/BlenderStyleModule.h +++ b/source/blender/freestyle/intern/blender_interface/BlenderStyleModule.h @@ -51,6 +51,10 @@ public: virtual ~BlenderStyleModule() { + } + + virtual void close() + { BKE_text_unlink(G.main, _text); BKE_libblock_free(&G.main->text, _text); } |