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
524ff6fe
Commit
524ff6fe
authored
Aug 17, 2012
by
Marcus Meissner
Committed by
Alexandre Julliard
Aug 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Fixed a use after free in error path (Coverity).
parent
de7635a2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
v4l.c
dlls/qcap/v4l.c
+1
-0
vfwcapture.c
dlls/qcap/vfwcapture.c
+2
-1
No files found.
dlls/qcap/v4l.c
View file @
524ff6fe
...
@@ -314,6 +314,7 @@ HRESULT qcap_driver_get_format(const Capture *capBox, AM_MEDIA_TYPE ** mT)
...
@@ -314,6 +314,7 @@ HRESULT qcap_driver_get_format(const Capture *capBox, AM_MEDIA_TYPE ** mT)
if
(
!
vi
)
if
(
!
vi
)
{
{
CoTaskMemFree
(
mT
[
0
]);
CoTaskMemFree
(
mT
[
0
]);
mT
[
0
]
=
NULL
;
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
}
}
mT
[
0
]
->
majortype
=
MEDIATYPE_Video
;
mT
[
0
]
->
majortype
=
MEDIATYPE_Video
;
...
...
dlls/qcap/vfwcapture.c
View file @
524ff6fe
...
@@ -678,9 +678,10 @@ static HRESULT WINAPI VfwPin_GetMediaType(BasePin *iface, int iPosition, AM_MEDI
...
@@ -678,9 +678,10 @@ static HRESULT WINAPI VfwPin_GetMediaType(BasePin *iface, int iPosition, AM_MEDI
return
VFW_S_NO_MORE_ITEMS
;
return
VFW_S_NO_MORE_ITEMS
;
hr
=
qcap_driver_get_format
(
This
->
driver_info
,
&
vfw_pmt
);
hr
=
qcap_driver_get_format
(
This
->
driver_info
,
&
vfw_pmt
);
if
(
SUCCEEDED
(
hr
))
{
CopyMediaType
(
pmt
,
vfw_pmt
);
CopyMediaType
(
pmt
,
vfw_pmt
);
DeleteMediaType
(
vfw_pmt
);
DeleteMediaType
(
vfw_pmt
);
}
return
hr
;
return
hr
;
}
}
...
...
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