tubes/source/manager.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b0a30d372fb9430c052177a1a551cd3b771236dd
Author: Eike Rathke <er...@redhat.com>
Date:   Mon Jul 16 17:49:14 2012 +0200

    tubes: guard unref() against "accidental" calls
    
    Change-Id: I73b0f8faaa9b6d0707153f3150ca531a33cb0dd3

diff --git a/tubes/source/manager.cxx b/tubes/source/manager.cxx
index b026d85..896fcc8 100644
--- a/tubes/source/manager.cxx
+++ b/tubes/source/manager.cxx
@@ -372,7 +372,7 @@ void
 TeleManager::unref()
 {
     MutexGuard aGuard( GetAnotherMutex());
-    if (--nAnotherRefCount == 0) {
+    if (nAnotherRefCount && --nAnotherRefCount == 0) {
         delete pSingleton;
         pSingleton = NULL;
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to