Kaydet (Commit) 581860f4 authored tarafından Eike Rathke's avatar Eike Rathke Kaydeden (comit) Matúš Kukan

tubes: guard unref() against "accidental" calls

Change-Id: I73b0f8faaa9b6d0707153f3150ca531a33cb0dd3
üst b1032a68
......@@ -372,7 +372,7 @@ void
TeleManager::unref()
{
MutexGuard aGuard( GetAnotherMutex());
if (--nAnotherRefCount == 0) {
if (nAnotherRefCount && --nAnotherRefCount == 0) {
delete pSingleton;
pSingleton = NULL;
}
......
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