diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2023-02-17 18:20:50 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2023-02-17 18:29:32 -0800 |
| commit | b6d476241a24866f8f7b92e849450450485a5b2f (patch) | |
| tree | 46afe9d3c8b77a86be785e35d01649bc4140fefd /Source/Core/VideoCommon/CommandProcessor.cpp | |
| parent | 1c5e223532cd1f731fe114768419e502dddcf1f9 (diff) | |
CodeViewWidget: Fix memory leak
Per https://doc.qt.io/qt-6/qabstractitemview.html#setItemDelegateForColumn setItemDelegateForColumn does not take ownership of the parameter, so it was not being deleted. Specifying a parent to QObject (via QStyledItemDelegate's constructor) will allow it to automatically be deleted, per https://doc.qt.io/qt-6/objecttrees.html. The other instance of a QItemDelegate in IOWindow.cpp already used this.
Diffstat (limited to 'Source/Core/VideoCommon/CommandProcessor.cpp')
0 files changed, 0 insertions, 0 deletions
