Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
f4bdd3ef
Commit
f4bdd3ef
authored
May 06, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mosaic: Free string variables after using them
parent
482492e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/video_filter/mosaic.c
modules/video_filter/mosaic.c
+5
-1
No files found.
modules/video_filter/mosaic.c
View file @
f4bdd3ef
...
...
@@ -283,7 +283,7 @@ static int CreateFilter( vlc_object_t *p_this )
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
;
vlc_object_t
*
p_libvlc
=
VLC_OBJECT
(
p_filter
->
p_libvlc
);
char
*
psz_order
;
char
*
psz_order
,
*
_psz_order
;
char
*
psz_offsets
;
int
i_index
;
vlc_value_t
val
;
...
...
@@ -349,6 +349,7 @@ static int CreateFilter( vlc_object_t *p_this )
p_sys
->
i_order_length
=
0
;
p_sys
->
ppsz_order
=
NULL
;
psz_order
=
var_CreateGetStringCommand
(
p_filter
,
CFG_PREFIX
"order"
);
_psz_order
=
psz_order
;
var_AddCallback
(
p_filter
,
CFG_PREFIX
"order"
,
MosaicCallback
,
p_sys
);
if
(
*
psz_order
)
...
...
@@ -368,12 +369,15 @@ static int CreateFilter( vlc_object_t *p_this )
p_sys
->
i_order_length
=
i_index
;
}
free
(
_psz_order
);
/* Manage specific offsets for substreams */
psz_offsets
=
var_CreateGetStringCommand
(
p_filter
,
CFG_PREFIX
"offsets"
);
p_sys
->
i_offsets_length
=
0
;
p_sys
->
pi_x_offsets
=
NULL
;
p_sys
->
pi_y_offsets
=
NULL
;
mosaic_ParseSetOffsets
(
p_filter
,
p_sys
,
psz_offsets
);
free
(
psz_offsets
);
var_AddCallback
(
p_filter
,
CFG_PREFIX
"offsets"
,
MosaicCallback
,
p_sys
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
...
...
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