Explicitly destroy static Glib::RefPtr<>s on exit (fixes #3636)

This commit is contained in:
Flössie
2019-03-09 12:06:54 +01:00
parent 2d0b376ae9
commit 51f06dfa6d
7 changed files with 54 additions and 1 deletions

View File

@@ -81,6 +81,29 @@ void CursorManager::init (Glib::RefPtr<Gdk::Window> mainWindow)
window = mainWindow;
}
void CursorManager::cleanup()
{
cAdd.reset();
cAddPicker.reset();
cCropDraw.reset();
cCrosshair.reset();
cHandClosed.reset();
cHandOpen.reset();
cEmpty.reset();
cMoveBL.reset();
cMoveBR.reset();
cMoveL.reset();
cMoveR.reset();
cMoveTL.reset();
cMoveTR.reset();
cMoveX.reset();
cMoveY.reset();
cMoveXY.reset();
cRotate.reset();
cWB.reset();
cWait.reset();
}
/* Set the cursor of the given window */
void CursorManager::setCursor (Glib::RefPtr<Gdk::Window> window, CursorShape shape)
{