From eb3d7347dec013a0425448b140ef3f571db66479 Mon Sep 17 00:00:00 2001 From: Misha Koshelev Date: Sat, 3 Mar 2007 16:09:36 -0600 Subject: msi: automation: Free member name at the end of AutomationObject_invoke. --- dlls/msi/automation.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/msi/automation.c b/dlls/msi/automation.c index eb6a6b5..a504734 100644 --- a/dlls/msi/automation.c +++ b/dlls/msi/automation.c @@ -340,6 +340,9 @@ static HRESULT WINAPI AutomationObject_I /* Make sure we free the return variant if it is our dummy variant */ if (pVarResult == &varResultDummy) VariantClear(pVarResult); + + /* Free function name if we retrieved it */ + if (bstrName == NULL) SysFreeString(bstrName); TRACE("Returning 0x%08lx, %s\n", (unsigned long int)hr, SUCCEEDED(hr) ? "ok" : "not ok"); -- 1.4.1