Fixed small memory leaks
This commit is contained in:
parent
7c7b6043c5
commit
d6233c70f0
2 changed files with 6 additions and 3 deletions
|
@ -5,8 +5,8 @@ OpenGLView {
|
|||
id: main_ui
|
||||
state: "Init"
|
||||
|
||||
width: 800
|
||||
height: 600
|
||||
width: 1000
|
||||
height: 700
|
||||
|
||||
Tooltip {
|
||||
id: tooltip_widget
|
||||
|
|
|
@ -23,6 +23,7 @@ CanvasPictureWriter::CanvasPictureWriter(const Canvas *canvas):
|
|||
CanvasPictureWriter::~CanvasPictureWriter()
|
||||
{
|
||||
delete profile;
|
||||
delete[] cache;
|
||||
}
|
||||
|
||||
void CanvasPictureWriter::setAntialias(int antialias)
|
||||
|
@ -117,6 +118,8 @@ Color CanvasPictureWriter::getRawPixel(int x, int y)
|
|||
itcolor++;
|
||||
}
|
||||
}
|
||||
|
||||
delete stream;
|
||||
}
|
||||
|
||||
// Hit the cache
|
||||
|
|
Loading…
Reference in a new issue