diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c
index 3812b72..b1ade9b 100644
--- a/dlls/oleaut32/tests/tmarshal.c
+++ b/dlls/oleaut32/tests/tmarshal.c
@@ -792,6 +792,7 @@ static void test_typelibmarshal(void)
     ok_ole_success(hr, CoUnmarshalInterface);
     IStream_Release(pStream);
 
+    pWidget = NULL;
     hr = IKindaEnumWidget_Next(pKEW, &pWidget);
     ok_ole_success(hr, IKindaEnumWidget_Next);
 
