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
b7fb80f5
Commit
b7fb80f5
authored
Apr 16, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules: Make sure DupModule() work as expected. (Pointed by courmisch).
parent
cc295ecf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/modules/modules.c
src/modules/modules.c
+2
-1
No files found.
src/modules/modules.c
View file @
b7fb80f5
...
...
@@ -1312,7 +1312,7 @@ static void DupModule( module_t *p_module )
/* We strdup() these entries so that they are still valid when the
* module is unloaded. */
/* This one is a (const char *) that will never get freed. */
p_module
->
psz_object_name
=
p_module
->
psz_object_name
;
p_module
->
psz_object_name
=
strdup
(
p_module
->
psz_object_name
)
;
p_module
->
psz_capability
=
strdup
(
p_module
->
psz_capability
);
p_module
->
psz_shortname
=
p_module
->
psz_shortname
?
strdup
(
p_module
->
psz_shortname
)
:
NULL
;
...
...
@@ -1346,6 +1346,7 @@ static void UndupModule( module_t *p_module )
free
(
*
pp_shortcut
);
}
free
(
p_module
->
psz_object_name
);
free
(
p_module
->
psz_capability
);
free
(
p_module
->
psz_shortname
);
free
(
p_module
->
psz_longname
);
...
...
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