Daniel Lehman : mshtml: Decrement refcount in nsWeakReference::Release ( Valgrind).
Alexandre Julliard
julliard at winehq.org
Wed Mar 22 15:52:34 CDT 2017
Module: wine
Branch: master
Commit: f21ec7f170950b610c5fbd36c8eda74a530cfe22
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f21ec7f170950b610c5fbd36c8eda74a530cfe22
Author: Daniel Lehman <dlehman25 at gmail.com>
Date: Mon Mar 20 22:56:50 2017 -0700
mshtml: Decrement refcount in nsWeakReference::Release (Valgrind).
Signed-off-by: Daniel Lehman <dlehman25 at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/nsembed.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c
index e343dde..aee00e6 100644
--- a/dlls/mshtml/nsembed.c
+++ b/dlls/mshtml/nsembed.c
@@ -1204,7 +1204,7 @@ static nsrefcnt NSAPI nsWeakReference_AddRef(nsIWeakReference *iface)
static nsrefcnt NSAPI nsWeakReference_Release(nsIWeakReference *iface)
{
nsWeakReference *This = impl_from_nsIWeakReference(iface);
- LONG ref = InterlockedIncrement(&This->ref);
+ LONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p) ref=%d\n", This, ref);
More information about the wine-cvs
mailing list