Chris Robinson : quartz: Don' t AddRef an object we just created and are handing back to the caller.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 5 06:23:42 CST 2007


Module: wine
Branch: master
Commit: efe156ae8ec4163da2a51511297dee2f6a5d0235
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=efe156ae8ec4163da2a51511297dee2f6a5d0235

Author: Chris Robinson <chris.kcat at gmail.com>
Date:   Mon Mar  5 00:12:29 2007 -0800

quartz: Don't AddRef an object we just created and are handing back to the caller.

---

 dlls/quartz/filesource.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c
index 691413d..01b9955 100644
--- a/dlls/quartz/filesource.c
+++ b/dlls/quartz/filesource.c
@@ -928,7 +928,6 @@ static HRESULT WINAPI FileAsyncReader_RequestAllocator(IAsyncReader * iface, IMe
         /* FIXME: check we are still aligned */
         if (SUCCEEDED(hr))
         {
-            IMemAllocator_AddRef(pPreferred);
             *ppActual = pPreferred;
             TRACE("FileAsyncReader_RequestAllocator -- %x\n", hr);
             return S_OK;




More information about the wine-cvs mailing list