Fixed memory leak in qemuscreen

This commit is contained in:
Stefan Achatz 2020-01-31 14:55:27 +01:00
parent c31bbe6b69
commit bbfe1916f3
2 changed files with 7 additions and 1 deletions

View file

@ -126,6 +126,11 @@ annRShift(QString(":/bitmap/bitmap/ann_right.xbm"))
show();
}
QEmuScreen::~QEmuScreen()
{
delete[] Pixels;
}
void QEmuScreen::setTimer(QTimer * tmr)
{
screentmr = tmr;

View file

@ -38,6 +38,7 @@ class QEmuScreen:public QGraphicsView
void setMode(int _mode, unsigned int *_buffer);
void setScale(qreal _scale);
explicit QEmuScreen(QWidget * parent = 0);
~QEmuScreen();
signals: public slots: void update();