You must not delete a running looper - you have to quit it.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19713 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-01-05 19:54:35 +00:00
parent 2ca64e4886
commit 9310654a00
@@ -1,5 +1,5 @@
/*
* Copyright 2003-2006, Haiku.
* Copyright 2003-2007, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
@@ -134,7 +134,9 @@ ScreenSaverFilter::~ScreenSaverFilter()
watch_node(&fNodeRef, B_STOP_WATCHING, fController);
be_roster->StopWatching(fController);
delete fController;
if (fController->Lock())
fController->Quit();
}