Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6633ef04
Commit
6633ef04
authored
Aug 29, 2012
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audiobargraph: fix memory leak.
parent
0813e08f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/video_filter/audiobargraph_v.c
modules/video_filter/audiobargraph_v.c
+4
-4
No files found.
modules/video_filter/audiobargraph_v.c
View file @
6633ef04
...
...
@@ -461,7 +461,6 @@ static int BarGraphCallback( vlc_object_t *p_this, char const *psz_var,
VLC_UNUSED
(
oldval
);
filter_sys_t
*
p_sys
=
(
filter_sys_t
*
)
p_data
;
BarGraph_t
*
p_BarGraph
=
&
(
p_sys
->
p_BarGraph
);
char
*
i_values
;
char
*
res
=
NULL
;
vlc_mutex_lock
(
&
p_sys
->
lock
);
...
...
@@ -488,15 +487,16 @@ static int BarGraphCallback( vlc_object_t *p_this, char const *psz_var,
picture_Release
(
p_BarGraph
->
p_pic
);
p_BarGraph
->
p_pic
=
NULL
;
}
i_values
=
strdup
(
newval
.
psz_string
);
char
*
psz_
i_values
=
strdup
(
newval
.
psz_string
);
free
(
p_BarGraph
->
i_values
);
//p_BarGraph->i_values = NULL;
//p_BarGraph->nbChannels = 0;
// in case many answer are received at the same time, only keep one
res
=
strchr
(
i_values
,
'@'
);
res
=
strchr
(
psz_
i_values
,
'@'
);
if
(
res
)
*
res
=
0
;
parse_i_values
(
p_BarGraph
,
i_values
);
parse_i_values
(
p_BarGraph
,
psz_i_values
);
free
(
psz_i_values
);
LoadBarGraph
(
p_this
,
p_BarGraph
);
}
else
if
(
!
strcmp
(
psz_var
,
"audiobargraph_v-alarm"
)
)
...
...
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