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
72c8bc65
Commit
72c8bc65
authored
Apr 01, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
directmanipulation: Use CRT memory allocation functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
949e2301
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
directmanipulation.c
dlls/directmanipulation/directmanipulation.c
+10
-11
No files found.
dlls/directmanipulation/directmanipulation.c
View file @
72c8bc65
...
...
@@ -23,7 +23,6 @@
#include "winbase.h"
#include "oleidl.h"
#include "rpcproxy.h"
#include "wine/heap.h"
#include "wine/debug.h"
#include "directmanipulation.h"
...
...
@@ -89,7 +88,7 @@ ULONG WINAPI update_manager_Release(IDirectManipulationUpdateManager *iface)
if
(
!
ref
)
{
heap_
free
(
This
);
free
(
This
);
}
return
ref
;
}
...
...
@@ -130,7 +129,7 @@ static HRESULT create_update_manager(IDirectManipulationUpdateManager **obj)
{
struct
directupdatemanager
*
object
;
object
=
heap_
alloc
(
sizeof
(
*
object
));
object
=
m
alloc
(
sizeof
(
*
object
));
if
(
!
object
)
return
E_OUTOFMEMORY
;
...
...
@@ -201,7 +200,7 @@ static ULONG WINAPI primary_Release(IDirectManipulationPrimaryContent *iface)
if
(
!
ref
)
{
heap_
free
(
This
);
free
(
This
);
}
return
ref
;
}
...
...
@@ -433,7 +432,7 @@ static ULONG WINAPI viewport_Release(IDirectManipulationViewport2 *iface)
if
(
!
ref
)
{
heap_
free
(
This
);
free
(
This
);
}
return
ref
;
}
...
...
@@ -540,7 +539,7 @@ static HRESULT WINAPI viewport_GetPrimaryContent(IDirectManipulationViewport2 *i
{
struct
primarycontext
*
primary
;
TRACE
(
"IDirectManipulationPrimaryContent
\n
"
);
primary
=
heap_
alloc
(
sizeof
(
*
primary
));
primary
=
m
alloc
(
sizeof
(
*
primary
));
if
(
!
primary
)
return
E_OUTOFMEMORY
;
...
...
@@ -719,7 +718,7 @@ static HRESULT create_viewport(IDirectManipulationViewport2 **obj)
{
struct
directviewport
*
object
;
object
=
heap_
alloc
(
sizeof
(
*
object
));
object
=
m
alloc
(
sizeof
(
*
object
));
if
(
!
object
)
return
E_OUTOFMEMORY
;
...
...
@@ -766,7 +765,7 @@ static ULONG WINAPI direct_manip_Release(IDirectManipulationManager2 *iface)
{
if
(
This
->
updatemanager
)
IDirectManipulationUpdateManager_Release
(
This
->
updatemanager
);
heap_
free
(
This
);
free
(
This
);
}
return
ref
;
}
...
...
@@ -887,7 +886,7 @@ static HRESULT WINAPI DirectManipulation_CreateInstance(IClassFactory *iface, IU
*
ppv
=
NULL
;
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
object
=
calloc
(
1
,
sizeof
(
*
object
));
if
(
!
object
)
return
E_OUTOFMEMORY
;
...
...
@@ -962,7 +961,7 @@ static ULONG WINAPI compositor_Release(IDirectManipulationCompositor2 *iface)
{
if
(
This
->
manager
)
IDirectManipulationUpdateManager_Release
(
This
->
manager
);
heap_
free
(
This
);
free
(
This
);
}
return
ref
;
}
...
...
@@ -1065,7 +1064,7 @@ static HRESULT WINAPI DirectCompositor_CreateInstance(IClassFactory *iface, IUnk
*
ppv
=
NULL
;
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
object
=
calloc
(
1
,
sizeof
(
*
object
));
if
(
!
object
)
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