Bug 417404: Fix nsCOMPtr version of NS_ProxyRelease(). r/sr=bsmedberg, b1.9=sayrer
authordcamp@mozilla.com
Thu, 21 Feb 2008 15:45:22 -0800
changeset 12049 f212da74389af8fa11930b0b6d51e5eb32e61010
parent 12048 b42111ac9770d0dfd34b634012542fe271c580a1
child 12050 4d309364649346dc03d5641b226234bcb63ab970
push idunknown
push userunknown
push dateunknown
bugs417404
milestone1.9b4pre
Bug 417404: Fix nsCOMPtr version of NS_ProxyRelease(). r/sr=bsmedberg, b1.9=sayrer
xpcom/glue/nsProxyRelease.h
--- a/xpcom/glue/nsProxyRelease.h
+++ b/xpcom/glue/nsProxyRelease.h
@@ -53,17 +53,17 @@
  */
 template <class T>
 inline NS_HIDDEN_(nsresult)
 NS_ProxyRelease
     (nsIEventTarget *target, nsCOMPtr<T> &doomed, PRBool alwaysProxy=PR_FALSE)
 {
    T* raw = nsnull;
    doomed.swap(raw);
-   return NS_ProxyRelease(target, doomed, alwaysProxy);
+   return NS_ProxyRelease(target, raw, alwaysProxy);
 }
 
 /**
  * Ensures that the delete of a nsISupports object occurs on the target thread.
  *
  * @param target
  *        the target thread where the doomed object should be released.
  * @param doomed