scrobj: Fix wrong cleanup logic for factory object.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2022-03-30 08:55:48 +03:00 committed by Alexandre Julliard
parent 1a9922734a
commit 5aab379deb
1 changed files with 0 additions and 3 deletions

View File

@ -1883,10 +1883,7 @@ static HRESULT create_scriptlet_factory(const WCHAR *url, struct scriptlet_facto
TRACE("%s\n", debugstr_w(url)); TRACE("%s\n", debugstr_w(url));
if (!(factory = calloc(1, sizeof(*factory)))) if (!(factory = calloc(1, sizeof(*factory))))
{
IClassFactory_Release(&factory->IClassFactory_iface);
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
}
factory->IClassFactory_iface.lpVtbl = &scriptlet_factory_vtbl; factory->IClassFactory_iface.lpVtbl = &scriptlet_factory_vtbl;
factory->ref = 1; factory->ref = 1;