]> git.cworth.org Git - vogl/commit
UI: Fix a bunch of memory leaks; rename a few member variables
authorPeterLValve <peterl@valvesoftware.com>
Wed, 19 Mar 2014 22:50:49 +0000 (15:50 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 1 Apr 2014 19:37:31 +0000 (12:37 -0700)
commit9ebbd22a77ac2d2f08f77914e74d288692b62b7b
treee6b458cae2392bcc09a723e5e4a4fd491f7c2354
parentf5e103c2d629e19724061c4f92d78def3013d5bb
UI: Fix a bunch of memory leaks; rename a few member variables
* A bunch of UI elements were not being deleted in VoglEditor.
* The ApiCallTreeModel (which maintains all the API calls and snapshopts) was being allocated each time a trace was opened, but never deleted when the trace was closed.
* The StateTreeModel was being reallocated each time the UI was updated to a new snapshot, but they were never being deleted.
* ApiCallItems were being deleted by BOTH the FrameItem and the ApiCallTreeItem; they are now only deleted by the ApiCallTreeItem.
src/vogleditor/vogleditor.cpp
src/vogleditor/vogleditor.h
src/vogleditor/vogleditor_apicalltreeitem.cpp
src/vogleditor/vogleditor_frameitem.h
src/vogleditor/vogleditor_qapicalltreemodel.cpp