# HG changeset patch # User Bernhard Urban # Date 1390230551 -3600 # Node ID b6cb481e9bcaa576935700279bd1f20282480c17 # Parent 3c047737189add1784c4bd0988876c77e87f89e9 IGV: avoid potential memory leak diff -r 3c047737189a -r b6cb481e9bca src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/BytecodeViewTopComponent.java --- a/src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/BytecodeViewTopComponent.java Mon Jan 20 16:09:10 2014 +0100 +++ b/src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/BytecodeViewTopComponent.java Mon Jan 20 16:09:11 2014 +0100 @@ -179,9 +179,13 @@ if (graph != null) { Group g = graph.getGroup(); rootNode.update(graph, g.getMethod()); + } else { + rootNode.update(null, null); } } }); + } else { + rootNode.update(null, null); } }