mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Qt: fix couple memory leaks
This commit is contained in:
parent
292c5e93ad
commit
d2f73e3f33
@ -710,6 +710,8 @@ MainWindow::~MainWindow()
|
||||
delete m_thumbnailPixmap2;
|
||||
if (m_thumbnailPixmap3)
|
||||
delete m_thumbnailPixmap3;
|
||||
if (m_proxyFileModel)
|
||||
delete m_proxyFileModel;
|
||||
}
|
||||
|
||||
void MainWindow::startTimer() {
|
||||
|
@ -170,6 +170,8 @@ void ThumbnailLabel::paintEvent(QPaintEvent *event)
|
||||
|
||||
if (!m_pixmap || m_pixmap->isNull())
|
||||
{
|
||||
if (m_pixmap)
|
||||
delete m_pixmap;
|
||||
m_pixmap = new QPixmap(sizeHint());
|
||||
m_pixmap->fill(QColor(0, 0, 0, 0));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user