Commit e12a7c3d authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

uianimation: Use CRT allocation functions.

parent cc2b468b
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include "initguid.h" #include "initguid.h"
#include "uianimation.h" #include "uianimation.h"
#include "wine/heap.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(uianimation); WINE_DEFAULT_DEBUG_CHANNEL(uianimation);
...@@ -151,7 +150,7 @@ static ULONG WINAPI animation_storyboard_Release( IUIAnimationStoryboard *iface ...@@ -151,7 +150,7 @@ static ULONG WINAPI animation_storyboard_Release( IUIAnimationStoryboard *iface
TRACE( "(%p) ref = %lu\n", This, ref ); TRACE( "(%p) ref = %lu\n", This, ref );
if (!ref) if (!ref)
heap_free( This ); free( This );
return ref; return ref;
} }
...@@ -308,7 +307,7 @@ const struct IUIAnimationStoryboardVtbl animation_storyboard_vtbl = ...@@ -308,7 +307,7 @@ const struct IUIAnimationStoryboardVtbl animation_storyboard_vtbl =
static HRESULT animation_storyboard_create( IUIAnimationStoryboard **obj ) static HRESULT animation_storyboard_create( IUIAnimationStoryboard **obj )
{ {
struct animation_storyboard *This = heap_alloc( sizeof(*This) ); struct animation_storyboard *This = malloc( sizeof(*This) );
if (!This) return E_OUTOFMEMORY; if (!This) return E_OUTOFMEMORY;
This->IUIAnimationStoryboard_iface.lpVtbl = &animation_storyboard_vtbl; This->IUIAnimationStoryboard_iface.lpVtbl = &animation_storyboard_vtbl;
...@@ -371,7 +370,7 @@ static ULONG WINAPI animation_var_Release( IUIAnimationVariable *iface ) ...@@ -371,7 +370,7 @@ static ULONG WINAPI animation_var_Release( IUIAnimationVariable *iface )
TRACE( "(%p) ref = %lu\n", This, ref ); TRACE( "(%p) ref = %lu\n", This, ref );
if (!ref) if (!ref)
heap_free( This ); free( This );
return ref; return ref;
} }
...@@ -498,7 +497,7 @@ const struct IUIAnimationVariableVtbl animation_var_vtbl = ...@@ -498,7 +497,7 @@ const struct IUIAnimationVariableVtbl animation_var_vtbl =
static HRESULT animation_var_create(DOUBLE initial, IUIAnimationVariable **obj ) static HRESULT animation_var_create(DOUBLE initial, IUIAnimationVariable **obj )
{ {
struct animation_var *This = heap_alloc( sizeof(*This) ); struct animation_var *This = malloc( sizeof(*This) );
if (!This) return E_OUTOFMEMORY; if (!This) return E_OUTOFMEMORY;
This->IUIAnimationVariable_iface.lpVtbl = &animation_var_vtbl; This->IUIAnimationVariable_iface.lpVtbl = &animation_var_vtbl;
...@@ -561,7 +560,7 @@ static ULONG WINAPI manager_Release( IUIAnimationManager *iface ) ...@@ -561,7 +560,7 @@ static ULONG WINAPI manager_Release( IUIAnimationManager *iface )
if (!ref) if (!ref)
{ {
heap_free( This ); free( This );
} }
return ref; return ref;
...@@ -730,7 +729,7 @@ const struct IUIAnimationManagerVtbl manager_vtbl = ...@@ -730,7 +729,7 @@ const struct IUIAnimationManagerVtbl manager_vtbl =
static HRESULT manager_create( IUnknown *outer, REFIID iid, void **obj ) static HRESULT manager_create( IUnknown *outer, REFIID iid, void **obj )
{ {
struct manager *This = heap_alloc( sizeof(*This) ); struct manager *This = malloc( sizeof(*This) );
HRESULT hr; HRESULT hr;
if (!This) return E_OUTOFMEMORY; if (!This) return E_OUTOFMEMORY;
...@@ -793,7 +792,7 @@ static ULONG WINAPI timer_Release( IUIAnimationTimer *iface ) ...@@ -793,7 +792,7 @@ static ULONG WINAPI timer_Release( IUIAnimationTimer *iface )
TRACE( "(%p) ref = %lu\n", This, ref ); TRACE( "(%p) ref = %lu\n", This, ref );
if (!ref) if (!ref)
heap_free( This ); free( This );
return ref; return ref;
} }
...@@ -866,7 +865,7 @@ const struct IUIAnimationTimerVtbl timer_vtbl = ...@@ -866,7 +865,7 @@ const struct IUIAnimationTimerVtbl timer_vtbl =
static HRESULT timer_create( IUnknown *outer, REFIID iid, void **obj ) static HRESULT timer_create( IUnknown *outer, REFIID iid, void **obj )
{ {
struct timer *This = heap_alloc( sizeof(*This) ); struct timer *This = malloc( sizeof(*This) );
HRESULT hr; HRESULT hr;
if (!This) if (!This)
...@@ -930,7 +929,7 @@ static ULONG WINAPI tr_factory_Release( IUIAnimationTransitionFactory *iface ) ...@@ -930,7 +929,7 @@ static ULONG WINAPI tr_factory_Release( IUIAnimationTransitionFactory *iface )
TRACE( "(%p) ref = %lu\n", This, ref ); TRACE( "(%p) ref = %lu\n", This, ref );
if (!ref) if (!ref)
heap_free( This ); free( This );
return ref; return ref;
} }
...@@ -953,7 +952,7 @@ const struct IUIAnimationTransitionFactoryVtbl tr_factory_vtbl = ...@@ -953,7 +952,7 @@ const struct IUIAnimationTransitionFactoryVtbl tr_factory_vtbl =
static HRESULT transition_create( IUnknown *outer, REFIID iid, void **obj ) static HRESULT transition_create( IUnknown *outer, REFIID iid, void **obj )
{ {
struct tr_factory *This = heap_alloc( sizeof(*This) ); struct tr_factory *This = malloc( sizeof(*This) );
HRESULT hr; HRESULT hr;
if (!This) return E_OUTOFMEMORY; if (!This) return E_OUTOFMEMORY;
...@@ -1017,7 +1016,7 @@ static ULONG WINAPI tr_library_Release( IUIAnimationTransitionLibrary *iface ) ...@@ -1017,7 +1016,7 @@ static ULONG WINAPI tr_library_Release( IUIAnimationTransitionLibrary *iface )
TRACE( "(%p) ref = %lu\n", This, ref ); TRACE( "(%p) ref = %lu\n", This, ref );
if (!ref) if (!ref)
heap_free( This ); free( This );
return ref; return ref;
} }
...@@ -1141,7 +1140,7 @@ const struct IUIAnimationTransitionLibraryVtbl tr_library_vtbl = ...@@ -1141,7 +1140,7 @@ const struct IUIAnimationTransitionLibraryVtbl tr_library_vtbl =
static HRESULT library_create( IUnknown *outer, REFIID iid, void **obj ) static HRESULT library_create( IUnknown *outer, REFIID iid, void **obj )
{ {
struct tr_library *This = heap_alloc( sizeof(*This) ); struct tr_library *This = malloc( sizeof(*This) );
HRESULT hr; HRESULT hr;
if (!This) return E_OUTOFMEMORY; if (!This) return E_OUTOFMEMORY;
......
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