From a4b0152c27a040bf956ecad927eb5e05921cd546 Mon Sep 17 00:00:00 2001 From: Adam Martinson Date: Tue, 30 Nov 2010 10:41:19 -0600 Subject: [PATCH] msxml3/domdoc: Add a ref to the schema cache in copy_properties(). --- dlls/msxml3/domdoc.c | 2 ++ dlls/msxml3/schema.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c index 27f6a9f4203..dbc9b759dfa 100644 --- a/dlls/msxml3/domdoc.c +++ b/dlls/msxml3/domdoc.c @@ -294,6 +294,8 @@ static domdoc_properties* copy_properties(domdoc_properties const* properties) pcopy->version = properties->version; pcopy->preserving = properties->preserving; pcopy->schemaCache = properties->schemaCache; + if (pcopy->schemaCache) + IXMLDOMSchemaCollection2_AddRef(pcopy->schemaCache); pcopy->XPath = properties->XPath; pcopy->selectNsStr_len = properties->selectNsStr_len; list_init( &pcopy->selectNsList ); diff --git a/dlls/msxml3/schema.c b/dlls/msxml3/schema.c index fa609a9bc17..e262f2e2ee7 100644 --- a/dlls/msxml3/schema.c +++ b/dlls/msxml3/schema.c @@ -38,7 +38,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml); /* We use a chained hashtable, which can hold any number of schemas - * TODO: versioned constructor * TODO: grow/shrink hashtable depending on load factor * TODO: implement read-only where appropriate */