Commits

Anonymous committed 98492f4

#i10000# Warning

Comments (0)

Files changed (1)

extensions/source/activex/main/SOActiveX.cpp

 		{
 			// remove dispatch interceptor
 			CComQIPtr< IDispatch, &IID_IDispatch > pIDispDispInter( mpDispatchInterceptor );
+		        CComVariant aVariant( pIDispDispInter );
 			ExecuteFunc( mpDispFrame,
 						 L"releaseDispatchProviderInterceptor",
-						 &CComVariant( pIDispDispInter ),
+						 &aVariant,
 						 1,
 						 &dummyResult );
 		}
 	CComQIPtr< IDispatch, &IID_IDispatch > pIDispDispInter( mpDispatchInterceptor );
 
 	// register dispatch interceptor in the frame
+        CComVariant aDispVariant( pIDispDispInter );
 	CComVariant dummyResult;
 	hr = ExecuteFunc( mpDispFrame,
 					  L"registerDispatchProviderInterceptor",
-					  &CComVariant( pIDispDispInter ),
+                                          &aDispVariant,
 					  1,
 					  &dummyResult );