[xpcom] PendingCall needs to be unreffed always
authorKalle Vahlman <kalle.vahlman@movial.com>
Thu, 30 Apr 2009 10:27:21 +0000 (13:27 +0300)
committerKalle Vahlman <kalle.vahlman@movial.com>
Thu, 30 Apr 2009 10:27:21 +0000 (13:27 +0300)
xpcom-dbusservice/DBusMethod.cpp

index c121f1696c20be2ea6f2afb0a55a3cf69c56a9ed..bee1e99debc3afcd88ef29db30a97ee5297f5c3c 100644 (file)
@@ -330,10 +330,10 @@ DBusMethod::DoCall(nsIVariant **aArgs, PRUint32 aCount)
             BDBLOG(("  do sync reply callback\n"));
             dbus_pending_call_block(pending);
             reply = dbus_pending_call_steal_reply (pending);
-            dbus_pending_call_unref (pending);
             DoCallBack(this, reply);
             dbus_message_unref(reply);
         }
+        dbus_pending_call_unref (pending);
     }
     else
     {