public void releaseGraph() {
		if(graphInUse) {
			CodeGenerator codegen = new CodeGenerator(editor);

			codegen = new CodeGenerator(editor);
			
			codegen.replacePhis(graph);
			codegen.simplifyControlFlow(graph);
			
			editor.clearCode();
			graph.visit(codegen);

			graph = null;
			graphInUse = false;
		}
	}