Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Killed some memory leaks

  • Loading branch information...
commit 0fee2c55403a34014893f125682b3930a81ad2ed 1 parent 04c340b
@kintel kintel authored
View
3  tests/cgalpngtest.cc
@@ -196,6 +196,9 @@ int main(int argc, char **argv)
csgInfo.glview->paintGL();
csgInfo.glview->save(outfile);
+ delete root_node;
+ delete root_module;
+
Builtins::instance(true);
return 0;
View
4 tests/csgtermtest.cc
@@ -143,6 +143,10 @@ int main(int argc, char **argv)
}
outfile.close();
+ if (root_term) root_term->unlink();
+ delete root_node;
+ delete root_module;
+
Builtins::instance(true);
return rc;
View
3  tests/csgtestcore.cc
@@ -216,6 +216,9 @@ int csgtestcore(int argc, char *argv[], test_type_e test_type)
csgInfo.glview->save(outfilename);
+ delete root_node;
+ delete root_module;
+
Builtins::instance(true);
return 0;
View
3  tests/csgtexttest.cc
@@ -129,6 +129,9 @@ int main(int argc, char **argv)
outfile << csgcache[*root_node] << "\n";
outfile.close();
+ delete root_node;
+ delete root_module;
+
Builtins::instance(true);
return rc;
View
6 tests/dumptest.cc
@@ -139,6 +139,9 @@ int main(int argc, char **argv)
outfile << dumpstdstr << "\n";
outfile.close();
+ delete root_node;
+ delete root_module;
+
root_module = parsefile(outfilename);
if (!root_module) {
fprintf(stderr, "Error: Unable to read back dumped file\n");
@@ -159,6 +162,9 @@ int main(int argc, char **argv)
exit(1);
}
+ delete root_node;
+ delete root_module;
+
Builtins::instance(true);
return rc;
View
3  tests/echotest.cc
@@ -124,6 +124,9 @@ int main(int argc, char **argv)
AbstractNode::resetIndexCounter();
root_node = root_module->evaluate(&root_ctx, &root_inst);
+ delete root_node;
+ delete root_module;
+
Builtins::instance(true);
ofile.close();
return rc;
View
11 valgrind.supp
@@ -39,3 +39,14 @@
fun:(below main)
}
+{
+ Qt misc leaks
+ Memcheck:Leak
+ fun:calloc
+ ...
+ fun:_Z7qt_initP19QApplicationPrivatei
+ fun:_ZN19QApplicationPrivate9constructEv
+ fun:_ZN12QApplicationC2ERiPPcbi
+ fun:main
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.