summaryrefslogtreecommitdiff
path: root/mainwin.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-09 22:43:33 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-09 22:43:33 (GMT)
commitfcb4b74d9ae5d06660c82d4714dc0fb5efabf9d0 (patch)
tree4fe485673fdb22a2b2e8758da1a44c428d944407 /mainwin.cc
parentfd9404cd932622520f8b2c757d7deb3de3e0afef (diff)
Clifford Wolf & Marius Kintel:
Fixed memory corruption git-svn-id: http://svn.clifford.at/openscad/trunk@257 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'mainwin.cc')
-rw-r--r--mainwin.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/mainwin.cc b/mainwin.cc
index 7433def..8265b6a 100644
--- a/mainwin.cc
+++ b/mainwin.cc
@@ -518,10 +518,8 @@ void MainWindow::compile(bool procevents)
QApplication::processEvents();
AbstractNode::idx_counter = 1;
- {
- ModuleInstantiation root_inst;
- absolute_root_node = root_module->evaluate(&root_ctx, &root_inst);
- }
+ root_inst = ModuleInstantiation();
+ absolute_root_node = root_module->evaluate(&root_ctx, &root_inst);
if (!absolute_root_node)
goto fail;
contact: Jan Huwald // Impressum