...
 
Commits (2)
......@@ -217,7 +217,7 @@ private:
};
/// Helper macro that produce a QString reprensenting a pointer
#define CAMITK_PRINT_POINTER(PTR) (QString(#PTR) + QString("=0x%1").arg((quintptr)PTR, QT_POINTER_SIZE * 2, 16, QChar('0')))
#define CAMITK_PRINT_POINTER(PTR) (QString(#PTR) + QString("->[0x%1]").arg((quintptr)PTR, QT_POINTER_SIZE * 2, 16, QChar('0')))
/// Generic log macro (it is NOT recommended to use it directly...)
#if !defined(CAMITK_DISABLE_LOG)
......
......@@ -57,8 +57,10 @@ MedicalImageViewer::MedicalImageViewer(QString name) : Viewer(name) {
// -------------------- Destructor --------------------
MedicalImageViewer::~MedicalImageViewer() {
viewerMenu->clear();
delete viewerMenu;
if (viewerMenu) {
viewerMenu->clear();
delete viewerMenu;
}
delete frame;
}
......