Commit 9cb8629f authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3: Use the global HeapAlloc() helpers.

parent e6d315ba
...@@ -561,7 +561,7 @@ static BOOL bstr_pool_insert(struct bstrpool *pool, BSTR pool_entry) ...@@ -561,7 +561,7 @@ static BOOL bstr_pool_insert(struct bstrpool *pool, BSTR pool_entry)
{ {
if (!pool->pool) if (!pool->pool)
{ {
pool->pool = HeapAlloc(GetProcessHeap(), 0, 16 * sizeof(*pool->pool)); pool->pool = heap_alloc(16 * sizeof(*pool->pool));
if (!pool->pool) if (!pool->pool)
return FALSE; return FALSE;
...@@ -570,7 +570,7 @@ static BOOL bstr_pool_insert(struct bstrpool *pool, BSTR pool_entry) ...@@ -570,7 +570,7 @@ static BOOL bstr_pool_insert(struct bstrpool *pool, BSTR pool_entry)
} }
else if (pool->index == pool->len) else if (pool->index == pool->len)
{ {
BSTR *realloc = HeapReAlloc(GetProcessHeap(), 0, pool->pool, pool->len * 2 * sizeof(*realloc)); BSTR *realloc = heap_realloc(pool->pool, pool->len * 2 * sizeof(*realloc));
if (!realloc) if (!realloc)
return FALSE; return FALSE;
...@@ -590,7 +590,7 @@ static void free_bstr_pool(struct bstrpool *pool) ...@@ -590,7 +590,7 @@ static void free_bstr_pool(struct bstrpool *pool)
for (i = 0; i < pool->index; i++) for (i = 0; i < pool->index; i++)
SysFreeString(pool->pool[i]); SysFreeString(pool->pool[i]);
HeapFree(GetProcessHeap(), 0, pool->pool); heap_free(pool->pool);
pool->pool = NULL; pool->pool = NULL;
pool->index = pool->len = 0; pool->index = pool->len = 0;
......
...@@ -749,7 +749,7 @@ void schemasInit(void) ...@@ -749,7 +749,7 @@ void schemasInit(void)
/* Resource is loaded as raw data, /* Resource is loaded as raw data,
* need a null-terminated string */ * need a null-terminated string */
while (buf[datatypes_len - 1] != '>') datatypes_len--; while (buf[datatypes_len - 1] != '>') datatypes_len--;
datatypes_src = HeapAlloc(GetProcessHeap(), 0, datatypes_len + 1); datatypes_src = heap_alloc(datatypes_len + 1);
memcpy(datatypes_src, buf, datatypes_len); memcpy(datatypes_src, buf, datatypes_len);
datatypes_src[datatypes_len] = 0; datatypes_src[datatypes_len] = 0;
...@@ -763,7 +763,7 @@ void schemasInit(void) ...@@ -763,7 +763,7 @@ void schemasInit(void)
void schemasCleanup(void) void schemasCleanup(void)
{ {
xmlSchemaFree(datatypes_schema); xmlSchemaFree(datatypes_schema);
HeapFree(GetProcessHeap(), 0, datatypes_src); heap_free(datatypes_src);
xmlSetExternalEntityLoader(_external_entity_loader); xmlSetExternalEntityLoader(_external_entity_loader);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment