mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
DolphinQt/InputCommon: Fix a few memory leaks.
This commit is contained in:
parent
54e09886d8
commit
725d34b2f0
10 changed files with 31 additions and 12 deletions
|
@ -104,7 +104,7 @@ QGroupBox* InfoWidget::CreateBannerDetails()
|
|||
|
||||
m_name = CreateValueDisplay();
|
||||
m_maker = CreateValueDisplay();
|
||||
m_description = new QTextEdit();
|
||||
m_description = new QTextEdit(group);
|
||||
m_description->setReadOnly(true);
|
||||
CreateLanguageSelector();
|
||||
|
||||
|
@ -153,7 +153,7 @@ void InfoWidget::SaveBanner()
|
|||
|
||||
QLineEdit* InfoWidget::CreateValueDisplay(const QString& value)
|
||||
{
|
||||
QLineEdit* value_display = new QLineEdit(value);
|
||||
QLineEdit* value_display = new QLineEdit(value, this);
|
||||
value_display->setReadOnly(true);
|
||||
value_display->setCursorPosition(0);
|
||||
return value_display;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue