Commit 2d6c29e6 authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED camitk-config crash

config does not call any getWidget() therefore safeguard the deletion process
parent c569e78a
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment