Commit 226897be authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

quartz/tests: Use CRT memory allocators.

parent 11c336b4
......@@ -23,7 +23,6 @@
#define CONST_VTABLE
#include "dshow.h"
#include "wine/heap.h"
#include "wine/test.h"
static const GUID testguid = {0xabbccdde};
......@@ -1486,14 +1485,8 @@ static HRESULT WINAPI testfilter_JoinFilterGraph(IBaseFilter *iface, IFilterGrap
if (winetest_debug > 1) trace("%p->JoinFilterGraph(%p, %s)\n", filter, graph, wine_dbgstr_w(name));
filter->graph = graph;
heap_free(filter->name);
if (name)
{
filter->name = heap_alloc((wcslen(name) + 1) * sizeof(WCHAR));
wcscpy(filter->name, name);
}
else
filter->name = NULL;
free(filter->name);
filter->name = name ? wcsdup(name) : NULL;
return S_OK;
}
......
......@@ -20,7 +20,6 @@
#define COBJMACROS
#include "dshow.h"
#include "wine/heap.h"
#include "wine/strmbase.h"
#include "wine/test.h"
......@@ -765,13 +764,13 @@ static DWORD WINAPI frame_thread(void *arg)
hr = IMemInputPin_Receive(params->sink, params->sample);
if (winetest_debug > 1) trace("%04x: Returned %#x.\n", GetCurrentThreadId(), hr);
IMediaSample_Release(params->sample);
heap_free(params);
free(params);
return hr;
}
static HANDLE send_frame_time(IMemInputPin *sink, REFERENCE_TIME start_time, unsigned char color)
{
struct frame_thread_params *params = heap_alloc(sizeof(*params));
struct frame_thread_params *params = malloc(sizeof(*params));
IMemAllocator *allocator;
REFERENCE_TIME end_time;
IMediaSample *sample;
......
......@@ -23,7 +23,6 @@
#include "dshow.h"
#include "d3d9.h"
#include "vmr9.h"
#include "wine/heap.h"
#include "wine/strmbase.h"
#include "wine/test.h"
......@@ -969,13 +968,13 @@ static DWORD WINAPI frame_thread(void *arg)
hr = IMemInputPin_Receive(params->sink, params->sample);
if (winetest_debug > 1) trace("%04x: Returned %#x.\n", GetCurrentThreadId(), hr);
IMediaSample_Release(params->sample);
heap_free(params);
free(params);
return hr;
}
static HANDLE send_frame(IMemInputPin *sink)
{
struct frame_thread_params *params = heap_alloc(sizeof(*params));
struct frame_thread_params *params = malloc(sizeof(*params));
REFERENCE_TIME start_time, end_time;
IMemAllocator *allocator;
IMediaSample *sample;
......
......@@ -28,7 +28,6 @@
#include "d3d9.h"
#include "vmr9.h"
#include "wmcodecdsp.h"
#include "wine/heap.h"
#include "wine/strmbase.h"
#include "wine/test.h"
......@@ -976,13 +975,13 @@ static DWORD WINAPI frame_thread(void *arg)
hr = IMemInputPin_Receive(params->sink, params->sample);
if (winetest_debug > 1) trace("%04x: Returned %#x.\n", GetCurrentThreadId(), hr);
IMediaSample_Release(params->sample);
heap_free(params);
free(params);
return hr;
}
static HANDLE send_frame_time(IMemInputPin *sink, REFERENCE_TIME start_time, DWORD color)
{
struct frame_thread_params *params = heap_alloc(sizeof(*params));
struct frame_thread_params *params = malloc(sizeof(*params));
IMemAllocator *allocator;
REFERENCE_TIME end_time;
IMediaSample *sample;
......
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