Debugger: Further work on memory leak hunting.hrev51717
commit3d9b569384e6a7339f1c18fc2786f3cda396f593
authorRene Gollent <rene@gollent.com>
Fri, 29 Dec 2017 04:22:13 +0000 (28 23:22 -0500)
committerRene Gollent <rene@gollent.com>
Fri, 29 Dec 2017 04:22:13 +0000 (28 23:22 -0500)
tree130b2552655f906b00e7cf84c3f6ef56438d7b9a
parent8bb774fc375e2645c85f91c7dd629740e9f76cce
Debugger: Further work on memory leak hunting.

TeamWindow:
- Properly delete stack frame selection entries in destructor.

TeamDebugger:
- The reference to TeamDebugInfo wasn't correctly initialized to own,
  leading to TeamDebugInfo never being destroyed.

FunctionInstance:
- Also clear source code reference in destructor.

ImageDebugInfo:
- Release references to specific infos in destructor. These are acquired
  on our behalf when loading the image info, but were never released,
  leading to the latter never being freed.

DwarfManager:
- Release references to files in destructor.

FileManager:
- Release entries in various destructors.

Somewhat improves the situation in #13800, but is still far from complete,
as a thorough review of this nature hasn't ever really been done.
src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp
src/kits/debugger/controllers/TeamDebugger.cpp
src/kits/debugger/debug_info/FunctionInstance.cpp
src/kits/debugger/debug_info/ImageDebugInfo.cpp
src/kits/debugger/dwarf/DwarfManager.cpp
src/kits/debugger/files/FileManager.cpp