Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
4f778db5
Commit
4f778db5
authored
Mar 08, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/input/es_out.c: fixed another small mem leak.
parent
6e4e6ab1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
src/input/es_out.c
src/input/es_out.c
+5
-10
No files found.
src/input/es_out.c
View file @
4f778db5
...
...
@@ -1292,8 +1292,7 @@ static char **LanguageSplit( const char *psz_langs )
char
**
ppsz
=
NULL
;
int
i_psz
=
0
;
if
(
psz_langs
==
NULL
)
return
NULL
;
if
(
psz_langs
==
NULL
)
return
NULL
;
psz_parser
=
psz_dup
=
strdup
(
psz_langs
);
...
...
@@ -1303,10 +1302,7 @@ static char **LanguageSplit( const char *psz_langs )
char
*
psz_code
;
psz
=
strchr
(
psz_parser
,
','
);
if
(
psz
)
{
*
psz
++
=
'\0'
;
}
if
(
psz
)
*
psz
++
=
'\0'
;
psz_code
=
LanguageGetCode
(
psz_parser
);
if
(
strcmp
(
psz_code
,
"??"
)
)
...
...
@@ -1322,6 +1318,7 @@ static char **LanguageSplit( const char *psz_langs )
TAB_APPEND
(
i_psz
,
ppsz
,
NULL
);
}
free
(
psz_dup
);
return
ppsz
;
}
...
...
@@ -1329,12 +1326,10 @@ static int LanguageArrayIndex( char **ppsz_langs, char *psz_lang )
{
int
i
;
if
(
!
ppsz_langs
||
!
psz_lang
)
return
-
1
;
if
(
!
ppsz_langs
||
!
psz_lang
)
return
-
1
;
for
(
i
=
0
;
ppsz_langs
[
i
];
i
++
)
if
(
!
strcasecmp
(
ppsz_langs
[
i
],
psz_lang
)
)
return
i
;
if
(
!
strcasecmp
(
ppsz_langs
[
i
],
psz_lang
)
)
return
i
;
return
-
1
;
}
...
...
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