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
3a973ca8
Commit
3a973ca8
authored
Jul 07, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Make freeing function optional for object activator.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4cd2ca96
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
15 deletions
+6
-15
evr.c
dlls/mf/evr.c
+2
-7
main.c
dlls/mf/main.c
+2
-1
sar.c
dlls/mf/sar.c
+2
-7
No files found.
dlls/mf/evr.c
View file @
3a973ca8
...
...
@@ -258,15 +258,10 @@ static void evr_shutdown_object(void *user_context, IUnknown *obj)
}
}
static
void
evr_free_private
(
void
*
user_context
)
{
}
static
const
struct
activate_funcs
evr_activate_funcs
=
{
evr_create_object
,
evr_shutdown_object
,
evr_free_private
,
.
create_object
=
evr_create_object
,
.
shutdown_object
=
evr_shutdown_object
,
};
/***********************************************************************
...
...
dlls/mf/main.c
View file @
3a973ca8
...
...
@@ -91,7 +91,8 @@ static ULONG WINAPI activate_object_Release(IMFActivate *iface)
if
(
!
refcount
)
{
activate
->
funcs
->
free_private
(
activate
->
context
);
if
(
activate
->
funcs
->
free_private
)
activate
->
funcs
->
free_private
(
activate
->
context
);
if
(
activate
->
object
)
IUnknown_Release
(
activate
->
object
);
IMFAttributes_Release
(
activate
->
attributes
);
...
...
dlls/mf/sar.c
View file @
3a973ca8
...
...
@@ -1891,15 +1891,10 @@ static void sar_shutdown_object(void *user_context, IUnknown *obj)
}
}
static
void
sar_free_private
(
void
*
user_context
)
{
}
static
const
struct
activate_funcs
sar_activate_funcs
=
{
sar_create_object
,
sar_shutdown_object
,
sar_free_private
,
.
create_object
=
sar_create_object
,
.
shutdown_object
=
sar_shutdown_object
,
};
/***********************************************************************
...
...
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