[Scummvm-cvs-logs] SF.net SVN: scummvm:[50916] tools/branches/gsoc2010-decompiler/decompiler/ decompiler.cpp
pidgeot at users.sourceforge.net
pidgeot at users.sourceforge.net
Thu Jul 15 17:00:37 CEST 2010
Revision: 50916
http://scummvm.svn.sourceforge.net/scummvm/?rev=50916&view=rev
Author: pidgeot
Date: 2010-07-15 15:00:37 +0000 (Thu, 15 Jul 2010)
Log Message:
-----------
Apparently the graph isn't being maintained properly after freeing the
ControlFlow class - move that to after the code generation
Modified Paths:
--------------
tools/branches/gsoc2010-decompiler/decompiler/decompiler.cpp
Modified: tools/branches/gsoc2010-decompiler/decompiler/decompiler.cpp
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/decompiler.cpp 2010-07-15 14:53:06 UTC (rev 50915)
+++ tools/branches/gsoc2010-decompiler/decompiler/decompiler.cpp 2010-07-15 15:00:37 UTC (rev 50916)
@@ -147,15 +147,13 @@
boost::write_graphviz(out, g, boost::make_label_writer(get(boost::vertex_name, g)), boost::makeArrowheadWriter(get(boost::edge_attribute, g)), GraphProperties());
}
- delete cf;
-
// Code generation
CodeGenerator *cg = engine->getCodeGenerator(std::cout);
cg->generate(g);
-
- delete cg;
-
+
// Free memory
+ delete cf;
+ delete cg;
delete engine;
} catch (UnknownOpcodeException &e) {
std::cerr << "ERROR: " << e.what() << "\n";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list