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
75e43e2b
Commit
75e43e2b
authored
Mar 23, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/variables: fixed mem-leak for VLC_VAR_CLEARCHOICES.
parent
8ce86495
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/misc/variables.c
src/misc/variables.c
+10
-3
No files found.
src/misc/variables.c
View file @
75e43e2b
...
...
@@ -2,7 +2,7 @@
* variables.c: routines for object variables handling
*****************************************************************************
* Copyright (C) 2002-2004 VideoLAN
* $Id
: variables.c,v 1.38 2004/02/29 13:08:56 gbazin Exp
$
* $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -501,11 +501,18 @@ int __var_Change( vlc_object_t *p_this, const char *psz_name,
{
p_var
->
pf_free
(
&
p_var
->
choices
.
p_values
[
i
]
);
}
if
(
p_var
->
choices
.
i_count
)
free
(
p_var
->
choices
.
p_values
);
for
(
i
=
0
;
i
<
p_var
->
choices_text
.
i_count
;
i
++
)
{
if
(
p_var
->
choices_text
.
p_values
[
i
].
psz_string
)
free
(
p_var
->
choices_text
.
p_values
[
i
].
psz_string
);
}
if
(
p_var
->
choices
.
i_count
)
free
(
p_var
->
choices
.
p_values
);
if
(
p_var
->
choices_text
.
i_count
)
free
(
p_var
->
choices_text
.
p_values
);
p_var
->
choices
.
i_count
=
0
;
p_var
->
choices
.
p_values
=
NULL
;
p_var
->
choices_text
.
i_count
=
0
;
p_var
->
choices_text
.
p_values
=
NULL
;
p_var
->
i_default
=
-
1
;
break
;
case
VLC_VAR_SETDEFAULT
:
...
...
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