Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
8b1f2d14
Commit
8b1f2d14
authored
Mar 04, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mac OS X gui: Sanitize vlc object retaining/releasing.
parent
fbaa8dc6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+1
-0
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+1
-8
modules/gui/macosx/sfilters.m
modules/gui/macosx/sfilters.m
+0
-2
No files found.
modules/gui/macosx/controls.m
View file @
8b1f2d14
...
@@ -393,6 +393,7 @@
...
@@ -393,6 +393,7 @@
intf_thread_t
*
p_intf
=
VLCIntf
;
intf_thread_t
*
p_intf
=
VLCIntf
;
val
.
i_int
=
config_GetInt
(
p_intf
,
"key-position"
);
val
.
i_int
=
config_GetInt
(
p_intf
,
"key-position"
);
var_Set
(
p_intf
,
"key-pressed"
,
val
);
var_Set
(
p_intf
,
"key-pressed"
,
val
);
vlc_object_release
(
(
vlc_object_t
*
)
p_vout
);
}
}
}
}
...
...
modules/gui/macosx/intf.m
View file @
8b1f2d14
...
@@ -1353,6 +1353,7 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -1353,6 +1353,7 @@ static VLCMain *_o_sharedMainInstance = nil;
[
o_controls
setupVarMenuItem
:
o_mi_screen
target
:
(
vlc_object_t
*
)
p_vout
[
o_controls
setupVarMenuItem
:
o_mi_screen
target
:
(
vlc_object_t
*
)
p_vout
var:
"video-device"
selector
:
@selector
(
toggleVar
:
)];
var:
"video-device"
selector
:
@selector
(
toggleVar
:
)];
vlc_object_release
(
(
vlc_object_t
*
)
p_vout
);
}
}
-
(
void
)
setScrollField
:(
NSString
*
)
o_string
stopAfter
:(
int
)
timeout
-
(
void
)
setScrollField
:(
NSString
*
)
o_string
stopAfter
:(
int
)
timeout
...
@@ -1572,14 +1573,6 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -1572,14 +1573,6 @@ static VLCMain *_o_sharedMainInstance = nil;
p_intf
->
b_interaction
=
VLC_FALSE
;
p_intf
->
b_interaction
=
VLC_FALSE
;
var_DelCallback
(
p_intf
,
"interaction"
,
InteractCallback
,
self
);
var_DelCallback
(
p_intf
,
"interaction"
,
InteractCallback
,
self
);
#define p_input p_intf->p_sys->p_input
if
(
p_input
)
{
vlc_object_release
(
p_input
);
p_input
=
NULL
;
}
#undef p_input
/* remove global observer watching for vout device changes correctly */
/* remove global observer watching for vout device changes correctly */
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
name:
NSApplicationDidChangeScreenParametersNotification
name:
NSApplicationDidChangeScreenParametersNotification
...
...
modules/gui/macosx/sfilters.m
View file @
8b1f2d14
...
@@ -646,8 +646,6 @@ static VLCsFilters *_o_sharedInstance = nil;
...
@@ -646,8 +646,6 @@ static VLCsFilters *_o_sharedInstance = nil;
free
(
psz_string
);
free
(
psz_string
);
vlc_object_release
(
p_intf
);
o_config_changed
=
YES
;
o_config_changed
=
YES
;
}
}
@end
@end
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