Rob Shearman : ole32: Fix a use-after-free of the file moniker in the running object table tests .

Alexandre Julliard julliard at wine.codeweavers.com
Tue Mar 6 16:13:22 CST 2007


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Tue Mar  6 17:57:45 2007 +0000

ole32: Fix a use-after-free of the file moniker in the running object table tests.

---

 dlls/ole32/tests/moniker.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/dlls/ole32/tests/moniker.c b/dlls/ole32/tests/moniker.c
index 6203ea6..f603f72 100644
--- a/dlls/ole32/tests/moniker.c
+++ b/dlls/ole32/tests/moniker.c
@@ -588,7 +588,6 @@ static void test_ROT(void)
     hr = IRunningObjectTable_Register(pROT, 0, (IUnknown*)&Test_ClassFactory,
                                       pMoniker, &dwCookie);
     ok_ole_success(hr, IRunningObjectTable_Register);
-    IMoniker_Release(pMoniker);
 
     ok_more_than_one_lock();
 




More information about the wine-cvs mailing list