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
4763e83b
Commit
4763e83b
authored
Apr 07, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Don't free a null media type in the file source.
parent
de117c1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
filesource.c
dlls/quartz/filesource.c
+5
-2
No files found.
dlls/quartz/filesource.c
View file @
4763e83b
...
@@ -96,6 +96,7 @@ static HRESULT process_extensions(HKEY hkeyExtensions, LPCOLESTR pszFileName, GU
...
@@ -96,6 +96,7 @@ static HRESULT process_extensions(HKEY hkeyExtensions, LPCOLESTR pszFileName, GU
size
=
sizeof
(
keying
);
size
=
sizeof
(
keying
);
if
(
!
l
)
if
(
!
l
)
l
=
RegQueryValueExW
(
hsub
,
subtype_name
,
NULL
,
NULL
,
(
LPBYTE
)
keying
,
&
size
);
l
=
RegQueryValueExW
(
hsub
,
subtype_name
,
NULL
,
NULL
,
(
LPBYTE
)
keying
,
&
size
);
if
(
!
l
)
if
(
!
l
)
CLSIDFromString
(
keying
,
minorType
);
CLSIDFromString
(
keying
,
minorType
);
...
@@ -433,7 +434,8 @@ static ULONG WINAPI AsyncReader_Release(IBaseFilter * iface)
...
@@ -433,7 +434,8 @@ static ULONG WINAPI AsyncReader_Release(IBaseFilter * iface)
DeleteCriticalSection
(
&
This
->
csFilter
);
DeleteCriticalSection
(
&
This
->
csFilter
);
This
->
lpVtbl
=
NULL
;
This
->
lpVtbl
=
NULL
;
CoTaskMemFree
(
This
->
pszFileName
);
CoTaskMemFree
(
This
->
pszFileName
);
FreeMediaType
(
This
->
pmt
);
if
(
This
->
pmt
)
FreeMediaType
(
This
->
pmt
);
CoTaskMemFree
(
This
);
CoTaskMemFree
(
This
);
return
0
;
return
0
;
}
}
...
@@ -681,7 +683,8 @@ static HRESULT WINAPI FileSource_Load(IFileSourceFilter * iface, LPCOLESTR pszFi
...
@@ -681,7 +683,8 @@ static HRESULT WINAPI FileSource_Load(IFileSourceFilter * iface, LPCOLESTR pszFi
}
}
CoTaskMemFree
(
This
->
pszFileName
);
CoTaskMemFree
(
This
->
pszFileName
);
FreeMediaType
(
This
->
pmt
);
if
(
This
->
pmt
)
FreeMediaType
(
This
->
pmt
);
This
->
pszFileName
=
NULL
;
This
->
pszFileName
=
NULL
;
This
->
pmt
=
NULL
;
This
->
pmt
=
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