Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2e726e6e
Commit
2e726e6e
authored
Mar 13, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Mar 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Avoid asserting from used samples on allocator release.
parent
809f6842
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
memallocator.c
dlls/quartz/memallocator.c
+15
-2
No files found.
dlls/quartz/memallocator.c
View file @
2e726e6e
...
...
@@ -490,7 +490,10 @@ static ULONG WINAPI StdMediaSample2_Release(IMediaSample2 * iface)
if
(
!
ref
)
{
IMemAllocator_ReleaseBuffer
(
This
->
pParent
,
(
IMediaSample
*
)
iface
);
if
(
This
->
pParent
)
IMemAllocator_ReleaseBuffer
(
This
->
pParent
,
(
IMediaSample
*
)
iface
);
else
StdMediaSample2_Delete
(
This
);
return
0
;
}
return
ref
;
...
...
@@ -813,7 +816,17 @@ static HRESULT StdMemAllocator_Free(IMemAllocator * iface)
StdMemAllocator
*
This
=
(
StdMemAllocator
*
)
iface
;
struct
list
*
cursor
;
assert
(
list_empty
(
&
This
->
base
.
used_list
));
if
(
!
list_empty
(
&
This
->
base
.
used_list
))
{
WARN
(
"Freeing allocator with outstanding samples!
\n
"
);
while
((
cursor
=
list_head
(
&
This
->
base
.
used_list
))
!=
NULL
)
{
StdMediaSample2
*
pSample
;
list_remove
(
cursor
);
pSample
=
LIST_ENTRY
(
cursor
,
StdMediaSample2
,
listentry
);
pSample
->
pParent
=
NULL
;
}
}
while
((
cursor
=
list_head
(
&
This
->
base
.
free_list
))
!=
NULL
)
{
...
...
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