Fix: DynamicObject::Unregister() failed to unregister objects.

This commit is contained in:
Gunnar Beutner 2013-01-18 09:55:05 +01:00
parent 5a7aeb1f19
commit 51bad2d2a6

View File

@ -284,7 +284,7 @@ void DynamicObject::Unregister(void)
{ {
assert(Application::IsMainThread()); assert(Application::IsMainThread());
if (GetType()->GetObject(GetName())) if (!GetType()->GetObject(GetName()))
return; return;
GetType()->UnregisterObject(GetSelf()); GetType()->UnregisterObject(GetSelf());