Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
9ac30b31
Commit
9ac30b31
authored
Aug 28, 2014
by
Hannes Domani
Committed by
Rémi Denis-Courmont
Aug 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Direct3D: fix memory leak
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
2f3d2d96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
modules/video_output/msw/direct3d.c
modules/video_output/msw/direct3d.c
+3
-5
No files found.
modules/video_output/msw/direct3d.c
View file @
9ac30b31
...
@@ -512,11 +512,9 @@ static HINSTANCE Direct3DLoadShaderLibrary(void)
...
@@ -512,11 +512,9 @@ static HINSTANCE Direct3DLoadShaderLibrary(void)
{
{
HINSTANCE
instance
=
NULL
;
HINSTANCE
instance
=
NULL
;
for
(
int
i
=
43
;
i
>
23
;
--
i
)
{
for
(
int
i
=
43
;
i
>
23
;
--
i
)
{
char
*
filename
=
NULL
;
TCHAR
filename
[
16
];
if
(
asprintf
(
&
filename
,
"D3dx9_%d.dll"
,
i
)
==
-
1
)
_sntprintf
(
filename
,
16
,
TEXT
(
"D3dx9_%d.dll"
),
i
);
continue
;
instance
=
LoadLibrary
(
filename
);
instance
=
LoadLibrary
(
ToT
(
filename
));
free
(
filename
);
if
(
instance
)
if
(
instance
)
break
;
break
;
}
}
...
...
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