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
227fb138
Commit
227fb138
authored
Jul 11, 2013
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fix some strdup memleaks
parent
3a96bb0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
modules/gui/macosx/prefs_widgets.m
modules/gui/macosx/prefs_widgets.m
+5
-2
modules/gui/macosx/simple_prefs.m
modules/gui/macosx/simple_prefs.m
+1
-1
No files found.
modules/gui/macosx/prefs_widgets.m
View file @
227fb138
...
...
@@ -859,9 +859,12 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case
CONFIG_ITEM_DIRECTORY
:
case
CONFIG_ITEM_MODULE
:
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST_CAT
:
config_PutPsz
(
VLCIntf
,
psz_name
,
[
self
stringValue
]);
case
CONFIG_ITEM_MODULE_LIST_CAT
:
{
char
*
psz_val
=
[
self
stringValue
];
config_PutPsz
(
VLCIntf
,
psz_name
,
psz_val
);
free
(
psz_val
);
break
;
}
case
CONFIG_ITEM_KEY
:
/* So you don't need to restart to have the changes take effect */
val
.
i_int
=
[
self
intValue
];
...
...
modules/gui/macosx/simple_prefs.m
View file @
227fb138
...
...
@@ -771,7 +771,7 @@ static inline void save_module_list(intf_thread_t * p_intf, id object, const cha
if
(
p_item
->
i_type
==
CONFIG_ITEM_MODULE
&&
module_provides
(
p_parser
,
p_item
->
psz_type
))
{
if
([
objectTitle
isEqualToString
:
_NS
(
module_GetLongName
(
p_parser
))])
{
config_PutPsz
(
p_intf
,
name
,
strdup
(
module_get_name
(
p_parser
,
false
)
));
config_PutPsz
(
p_intf
,
name
,
module_get_name
(
p_parser
,
false
));
break
;
}
}
...
...
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