mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
delete the old image before creating new one in QWindowSurface::setGeometry()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
bcdc1fd136
commit
42014a3683
1 changed files with 1 additions and 4 deletions
|
@ -289,11 +289,8 @@ void QWindowSurface::setGeometry(const QRect &rect)
|
|||
return;
|
||||
}
|
||||
|
||||
QImage *oldImage = d_ptr->image;
|
||||
|
||||
delete d_ptr->image;
|
||||
d_ptr->image = new QImage(width, height, format);
|
||||
|
||||
delete oldImage;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue