[xpcom] More ref leak fixes...
authorKalle Vahlman <kalle.vahlman@movial.com>
Thu, 30 Apr 2009 10:00:27 +0000 (13:00 +0300)
committerKalle Vahlman <kalle.vahlman@movial.com>
Thu, 30 Apr 2009 10:00:27 +0000 (13:00 +0300)
xpcom-dbusservice/DBusMarshaling.cpp

index 554b4c621a922cb8cb1f2f176d920f60b6564fca..48227efd001097a5af1e1c75ad2482410304a5fc 100644 (file)
@@ -514,6 +514,7 @@ addVariantToIter(JSContext* cx, nsIVariant *aVariant, DBusMessageIter *aIter, DB
                                 NS_ENSURE_SUCCESS(rs, );
 
                                 addVariantToIter(cx, var, &dictIter, &dictSigIter);
+                                NS_IF_RELEASE(var);
                             }
                             
                             // Close the dict entry container