diff --git a/src/interface/modeler/quickapp/qml/main.qml b/src/interface/modeler/quickapp/qml/main.qml index cdfc20d..56d75c0 100644 --- a/src/interface/modeler/quickapp/qml/main.qml +++ b/src/interface/modeler/quickapp/qml/main.qml @@ -5,8 +5,8 @@ OpenGLView { id: main_ui state: "Init" - width: 800 - height: 600 + width: 1000 + height: 700 Tooltip { id: tooltip_widget diff --git a/src/render/software/CanvasPictureWriter.cpp b/src/render/software/CanvasPictureWriter.cpp index 1354690..be68387 100644 --- a/src/render/software/CanvasPictureWriter.cpp +++ b/src/render/software/CanvasPictureWriter.cpp @@ -23,6 +23,7 @@ CanvasPictureWriter::CanvasPictureWriter(const Canvas *canvas): CanvasPictureWriter::~CanvasPictureWriter() { delete profile; + delete[] cache; } void CanvasPictureWriter::setAntialias(int antialias) @@ -84,7 +85,7 @@ Color CanvasPictureWriter::getRawPixel(int x, int y) if (not (y >= cache_y && y < cache_y + antialias)) { // Load rows into cache - delete [] cache; + delete[] cache; cache_y = y; cache_width = canvas->getWidth(); cache = new Color[cache_width * antialias]; @@ -117,6 +118,8 @@ Color CanvasPictureWriter::getRawPixel(int x, int y) itcolor++; } } + + delete stream; } // Hit the cache