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>2008-06-11 18:31:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-06-11 18:31:51 +0400
commit21a46a0155b4eefc91deb805b5f6f42afdf404cd (patch)
tree5d64e6d934ebadbf6890a2e517150fcb35d4d8cb /source/blender/src
parentd0fc57e5dfb574fa63d34572a6e6e9c0f39127bc (diff)
bugfix
- duplicated script spaces would keep a pointer to the PyObject button list. (causing python errors with negative reference counts when freeing spaces) - Exiting blender would crash when a UI was open because the ScriptSpaces button PyList was being free'd after python Py_Finalize was called.
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/space.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c
index 53962d9519b..a31bd457f47 100644
--- a/source/blender/src/space.c
+++ b/source/blender/src/space.c
@@ -6334,7 +6334,10 @@ void duplicatespacelist(ScrArea *newarea, ListBase *lb1, ListBase *lb2)
SpaceNode *snode= (SpaceNode *)sl;
snode->nodetree= NULL;
}
-
+ else if(sl->spacetype==SPACE_SCRIPT) {
+ SpaceScript *sc = ( SpaceScript * ) sl;
+ sc->but_refs = NULL;
+ }
sl= sl->next;
}