Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f2ca8ad7 authored by KLOCZKO Thibaud's avatar KLOCZKO Thibaud
Browse files

fix missing destruction of the data in dtkImage

parent 28930b2b
No related branches found
No related tags found
No related merge requests found
# ChangLog
## version 1.1.1 - 2018-11-09
* fix missing destruction of the data in dtkImage
## version 1.1.0 - 2018-07-25
* use DTK_PYTHON_INSTALL_PATH
* add setAutoLoading in dtkImaging namespace
......
......@@ -24,7 +24,7 @@ project(dtkImaging)
set(${PROJECT_NAME}_VERSION_MAJOR 1)
set(${PROJECT_NAME}_VERSION_MINOR 1)
set(${PROJECT_NAME}_VERSION_PATCH 0)
set(${PROJECT_NAME}_VERSION_PATCH 1)
set(${PROJECT_NAME}_VERSION
${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}.${${PROJECT_NAME}_VERSION_PATCH})
......
......@@ -117,7 +117,10 @@ dtkImage::dtkImage(qlonglong x, qlonglong y, qlonglong z, QObject *parent) : QOb
*/
dtkImage::~dtkImage(void)
{
if(d) {
if (d) {
if (d->imageData) {
delete d->imageData;
}
delete d;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment