mirror of
https://git.code.sf.net/p/newrpl/sources
synced 2024-11-16 19:51:25 +01:00
Fixed memory leak in qemuscreen
This commit is contained in:
parent
c31bbe6b69
commit
bbfe1916f3
2 changed files with 7 additions and 1 deletions
|
@ -126,6 +126,11 @@ annRShift(QString(":/bitmap/bitmap/ann_right.xbm"))
|
|||
show();
|
||||
}
|
||||
|
||||
QEmuScreen::~QEmuScreen()
|
||||
{
|
||||
delete[] Pixels;
|
||||
}
|
||||
|
||||
void QEmuScreen::setTimer(QTimer * tmr)
|
||||
{
|
||||
screentmr = tmr;
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue