Fix two lgtm issues

This commit is contained in:
Ingo Weyrich 2019-11-01 22:57:20 +01:00
parent c1f9120ef4
commit f02f5c4a69
2 changed files with 14 additions and 39 deletions

View File

@ -891,41 +891,17 @@ EditorPanel::~EditorPanel ()
delete vboxright; delete vboxright;
//delete saveAsDialog; //delete saveAsDialog;
if (catalogPane) { delete catalogPane;
delete catalogPane; delete iTopPanel_1_Show;
} delete iTopPanel_1_Hide;
delete iHistoryShow;
if (iTopPanel_1_Show) { delete iHistoryHide;
delete iTopPanel_1_Show; delete iBeforeLockON;
} delete iBeforeLockOFF;
delete iRightPanel_1_Show;
if (iTopPanel_1_Hide) { delete iRightPanel_1_Hide;
delete iTopPanel_1_Hide; delete iShowHideSidePanels_exit;
} delete iShowHideSidePanels;
if (iHistoryShow) {
delete iHistoryShow;
}
if (iHistoryHide) {
delete iHistoryHide;
}
if (iBeforeLockON) {
delete iBeforeLockON;
}
if (iBeforeLockOFF) {
delete iBeforeLockOFF;
}
if (iRightPanel_1_Show) {
delete iRightPanel_1_Show;
}
if (iRightPanel_1_Hide) {
delete iRightPanel_1_Hide;
}
} }
void EditorPanel::leftPaneButtonReleased (GdkEventButton *event) void EditorPanel::leftPaneButtonReleased (GdkEventButton *event)

View File

@ -458,10 +458,9 @@ RTWindow::~RTWindow()
g_object_unref (osxApp); g_object_unref (osxApp);
#endif #endif
if (fpanel) { delete fpanel;
delete fpanel; delete iFullscreen;
} delete iFullscreen_exit;
RTImage::cleanup(); RTImage::cleanup();
} }