Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e12a7c3d
Commit
e12a7c3d
authored
Apr 04, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uianimation: Use CRT allocation functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cc2b468b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
main.c
dlls/uianimation/main.c
+12
-13
No files found.
dlls/uianimation/main.c
View file @
e12a7c3d
...
...
@@ -31,7 +31,6 @@
#include "initguid.h"
#include "uianimation.h"
#include "wine/heap.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
uianimation
);
...
...
@@ -151,7 +150,7 @@ static ULONG WINAPI animation_storyboard_Release( IUIAnimationStoryboard *iface
TRACE
(
"(%p) ref = %lu
\n
"
,
This
,
ref
);
if
(
!
ref
)
heap_
free
(
This
);
free
(
This
);
return
ref
;
}
...
...
@@ -308,7 +307,7 @@ const struct IUIAnimationStoryboardVtbl animation_storyboard_vtbl =
static
HRESULT
animation_storyboard_create
(
IUIAnimationStoryboard
**
obj
)
{
struct
animation_storyboard
*
This
=
heap_
alloc
(
sizeof
(
*
This
)
);
struct
animation_storyboard
*
This
=
m
alloc
(
sizeof
(
*
This
)
);
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
IUIAnimationStoryboard_iface
.
lpVtbl
=
&
animation_storyboard_vtbl
;
...
...
@@ -371,7 +370,7 @@ static ULONG WINAPI animation_var_Release( IUIAnimationVariable *iface )
TRACE
(
"(%p) ref = %lu
\n
"
,
This
,
ref
);
if
(
!
ref
)
heap_
free
(
This
);
free
(
This
);
return
ref
;
}
...
...
@@ -498,7 +497,7 @@ const struct IUIAnimationVariableVtbl animation_var_vtbl =
static
HRESULT
animation_var_create
(
DOUBLE
initial
,
IUIAnimationVariable
**
obj
)
{
struct
animation_var
*
This
=
heap_
alloc
(
sizeof
(
*
This
)
);
struct
animation_var
*
This
=
m
alloc
(
sizeof
(
*
This
)
);
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
IUIAnimationVariable_iface
.
lpVtbl
=
&
animation_var_vtbl
;
...
...
@@ -561,7 +560,7 @@ static ULONG WINAPI manager_Release( IUIAnimationManager *iface )
if
(
!
ref
)
{
heap_
free
(
This
);
free
(
This
);
}
return
ref
;
...
...
@@ -730,7 +729,7 @@ const struct IUIAnimationManagerVtbl manager_vtbl =
static
HRESULT
manager_create
(
IUnknown
*
outer
,
REFIID
iid
,
void
**
obj
)
{
struct
manager
*
This
=
heap_
alloc
(
sizeof
(
*
This
)
);
struct
manager
*
This
=
m
alloc
(
sizeof
(
*
This
)
);
HRESULT
hr
;
if
(
!
This
)
return
E_OUTOFMEMORY
;
...
...
@@ -793,7 +792,7 @@ static ULONG WINAPI timer_Release( IUIAnimationTimer *iface )
TRACE
(
"(%p) ref = %lu
\n
"
,
This
,
ref
);
if
(
!
ref
)
heap_
free
(
This
);
free
(
This
);
return
ref
;
}
...
...
@@ -866,7 +865,7 @@ const struct IUIAnimationTimerVtbl timer_vtbl =
static
HRESULT
timer_create
(
IUnknown
*
outer
,
REFIID
iid
,
void
**
obj
)
{
struct
timer
*
This
=
heap_
alloc
(
sizeof
(
*
This
)
);
struct
timer
*
This
=
m
alloc
(
sizeof
(
*
This
)
);
HRESULT
hr
;
if
(
!
This
)
...
...
@@ -930,7 +929,7 @@ static ULONG WINAPI tr_factory_Release( IUIAnimationTransitionFactory *iface )
TRACE
(
"(%p) ref = %lu
\n
"
,
This
,
ref
);
if
(
!
ref
)
heap_
free
(
This
);
free
(
This
);
return
ref
;
}
...
...
@@ -953,7 +952,7 @@ const struct IUIAnimationTransitionFactoryVtbl tr_factory_vtbl =
static
HRESULT
transition_create
(
IUnknown
*
outer
,
REFIID
iid
,
void
**
obj
)
{
struct
tr_factory
*
This
=
heap_
alloc
(
sizeof
(
*
This
)
);
struct
tr_factory
*
This
=
m
alloc
(
sizeof
(
*
This
)
);
HRESULT
hr
;
if
(
!
This
)
return
E_OUTOFMEMORY
;
...
...
@@ -1017,7 +1016,7 @@ static ULONG WINAPI tr_library_Release( IUIAnimationTransitionLibrary *iface )
TRACE
(
"(%p) ref = %lu
\n
"
,
This
,
ref
);
if
(
!
ref
)
heap_
free
(
This
);
free
(
This
);
return
ref
;
}
...
...
@@ -1141,7 +1140,7 @@ const struct IUIAnimationTransitionLibraryVtbl tr_library_vtbl =
static
HRESULT
library_create
(
IUnknown
*
outer
,
REFIID
iid
,
void
**
obj
)
{
struct
tr_library
*
This
=
heap_
alloc
(
sizeof
(
*
This
)
);
struct
tr_library
*
This
=
m
alloc
(
sizeof
(
*
This
)
);
HRESULT
hr
;
if
(
!
This
)
return
E_OUTOFMEMORY
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment