Module: wine Branch: stable Commit: a018ea5501975d54476a61114a482de3e38db617 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a018ea5501975d54476a61114a...
Author: Daniel Lehman dlehman25@gmail.com Date: Mon Mar 20 22:56:50 2017 -0700
mshtml: Decrement refcount in nsWeakReference::Release (Valgrind).
Signed-off-by: Daniel Lehman dlehman25@gmail.com Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit f21ec7f170950b610c5fbd36c8eda74a530cfe22) Signed-off-by: Michael Stefaniuc mstefani@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);