fpdebug: fixed mem leak

git-svn-id: branches/fixes_1_6@50879 -
This commit is contained in:
mattias 2015-12-17 21:57:31 +00:00
parent 0f4ab685b0
commit e40775458c

View File

@ -392,8 +392,10 @@ end;
function TDbgCallstackEntry.GetSymbol: TFpDbgSymbol;
begin
if not FIsSymbolResolved then
if not FIsSymbolResolved then begin
FSymbol := FThread.Process.FindSymbol(FAnAddress);
FIsSymbolResolved := FSymbol <> nil
end;
result := FSymbol;
end;
@ -481,7 +483,8 @@ end;
destructor TDbgCallstackEntry.Destroy;
begin
FRegisterValueList.Free;
FreeAndNil(FRegisterValueList);
FreeAndNil(FSymbol);
inherited Destroy;
end;