diff --git a/ChangeLog b/ChangeLog index d0a2ac1b..fcf2f35d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-07 Tatsuhiro Tsujikawa + + Fixed memory leak + * src/MetalinkParserStateMachine.cc + 2008-08-07 Tatsuhiro Tsujikawa Fixed memory leak diff --git a/src/MetalinkParserStateMachine.cc b/src/MetalinkParserStateMachine.cc index 6ea028c1..074c71b9 100644 --- a/src/MetalinkParserStateMachine.cc +++ b/src/MetalinkParserStateMachine.cc @@ -161,7 +161,8 @@ void MetalinkParserStateMachine::setFinState() void MetalinkParserStateMachine::setSkipTagState(MetalinkParserState* prevSate) { - _state = new SkipTagMetalinkParserState(prevSate); + _skipTagState = new SkipTagMetalinkParserState(prevSate); + _state = _skipTagState; } void MetalinkParserStateMachine::restoreSavedState()