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
cc82de22
Commit
cc82de22
authored
Jul 29, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed a few memory leaks
parent
8af2eab6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
7 deletions
+24
-7
modules/gui/macosx/MainMenu.m
modules/gui/macosx/MainMenu.m
+2
-0
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+20
-7
modules/gui/macosx/playlistinfo.m
modules/gui/macosx/playlistinfo.m
+2
-0
No files found.
modules/gui/macosx/MainMenu.m
View file @
cc82de22
...
@@ -508,6 +508,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
...
@@ -508,6 +508,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
-
(
void
)
setRateControlsEnabled
:(
BOOL
)
b_enabled
-
(
void
)
setRateControlsEnabled
:(
BOOL
)
b_enabled
{
{
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
[
o_mi_rate_sld
setEnabled
:
b_enabled
];
[
o_mi_rate_sld
setEnabled
:
b_enabled
];
[
o_mi_rate_sld
setIntValue
:
[[
VLCCoreInteraction
sharedInstance
]
playbackRate
]];
[
o_mi_rate_sld
setIntValue
:
[[
VLCCoreInteraction
sharedInstance
]
playbackRate
]];
int
i
=
[[
VLCCoreInteraction
sharedInstance
]
playbackRate
];
int
i
=
[[
VLCCoreInteraction
sharedInstance
]
playbackRate
];
...
@@ -523,6 +524,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
...
@@ -523,6 +524,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
[
o_mi_rate_lbl
setHidden
:
YES
];
[
o_mi_rate_lbl
setHidden
:
YES
];
[
o_mi_rate_lbl_gray
setHidden
:
NO
];
[
o_mi_rate_lbl_gray
setHidden
:
NO
];
}
}
[
o_pool
release
];
}
}
#pragma mark -
#pragma mark -
...
...
modules/gui/macosx/MainWindow.m
View file @
cc82de22
...
@@ -459,6 +459,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -459,6 +459,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
p_input
=
pl_CurrentInput
(
VLCIntf
);
p_input
=
pl_CurrentInput
(
VLCIntf
);
if
(
p_input
)
if
(
p_input
)
{
{
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
vlc_value_t
time
;
vlc_value_t
time
;
NSString
*
o_time
;
NSString
*
o_time
;
vlc_value_t
pos
;
vlc_value_t
pos
;
...
@@ -482,6 +483,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -482,6 +483,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
[
o_time_fld
setStringValue
:
o_time
];
[
o_time_fld
setStringValue
:
o_time
];
[
o_time_fld
setNeedsDisplay
:
YES
];
[
o_time_fld
setNeedsDisplay
:
YES
];
// [[[[VLCMain sharedInstance] controls] fspanel] setStreamPos: f_updated andTime: o_time];
// [[[[VLCMain sharedInstance] controls] fspanel] setStreamPos: f_updated andTime: o_time];
[
o_pool
release
];
}
}
else
else
{
{
...
@@ -511,8 +513,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -511,8 +513,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
-
(
void
)
updateName
-
(
void
)
updateName
{
{
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
input_thread_t
*
p_input
;
input_thread_t
*
p_input
;
p_input
=
pl_CurrentInput
(
VLCIntf
);
p_input
=
pl_CurrentInput
(
VLCIntf
);
if
(
p_input
)
if
(
p_input
)
{
{
...
@@ -564,6 +566,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -564,6 +566,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
[
self
setTitle
:
_NS
(
"VLC media player"
)];
[
self
setTitle
:
_NS
(
"VLC media player"
)];
[
self
setRepresentedFilename
:
@""
];
[
self
setRepresentedFilename
:
@""
];
}
}
[
o_pool
release
];
}
}
-
(
void
)
updateWindow
-
(
void
)
updateWindow
...
@@ -639,6 +642,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -639,6 +642,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
-
(
void
)
drawFancyGradientEffectForTimeSlider
-
(
void
)
drawFancyGradientEffectForTimeSlider
{
{
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
float
f_value
=
([
o_time_sld_middle_view
frame
].
size
.
width
-
5
)
*
([
o_time_sld
intValue
]
/
[
o_time_sld
maxValue
]);
float
f_value
=
([
o_time_sld_middle_view
frame
].
size
.
width
-
5
)
*
([
o_time_sld
intValue
]
/
[
o_time_sld
maxValue
]);
if
(
f_value
>
5
.
0
)
if
(
f_value
>
5
.
0
)
{
{
...
@@ -654,6 +658,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -654,6 +658,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
{
{
[
o_time_sld_fancygradient_view
setHidden
:
YES
];
[
o_time_sld_fancygradient_view
setHidden
:
YES
];
}
}
[
o_pool
release
];
}
}
#pragma mark -
#pragma mark -
...
@@ -681,19 +686,27 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -681,19 +686,27 @@ static VLCMainWindow *_o_sharedInstance = nil;
@end
@end
@implementation
VLCProgressBarGradientEffect
@implementation
VLCProgressBarGradientEffect
-
(
void
)
dealloc
{
[
o_time_sld_gradient_left_img
release
];
[
o_time_sld_gradient_middle_img
release
];
[
o_time_sld_gradient_right_img
release
];
[
super
dealloc
];
}
-
(
void
)
loadImagesInDarkStyle
:
(
BOOL
)
b_value
-
(
void
)
loadImagesInDarkStyle
:
(
BOOL
)
b_value
{
{
if
(
b_value
)
if
(
b_value
)
{
{
o_time_sld_gradient_left_img
=
[
NSImage
imageNamed
:
@"progressbar-fill-left_dark"
];
o_time_sld_gradient_left_img
=
[
[
NSImage
imageNamed
:
@"progressbar-fill-left_dark"
]
retain
];
o_time_sld_gradient_middle_img
=
[
NSImage
imageNamed
:
@"progressbar-fill-middle_dark"
];
o_time_sld_gradient_middle_img
=
[
[
NSImage
imageNamed
:
@"progressbar-fill-middle_dark"
]
retain
];
o_time_sld_gradient_right_img
=
[
NSImage
imageNamed
:
@"progressbar-fill-right_dark"
];
o_time_sld_gradient_right_img
=
[
[
NSImage
imageNamed
:
@"progressbar-fill-right_dark"
]
retain
];
}
}
else
else
{
{
o_time_sld_gradient_left_img
=
[
NSImage
imageNamed
:
@"progression-fill-left"
];
o_time_sld_gradient_left_img
=
[
[
NSImage
imageNamed
:
@"progression-fill-left"
]
retain
];
o_time_sld_gradient_middle_img
=
[
NSImage
imageNamed
:
@"progression-fill-middle"
];
o_time_sld_gradient_middle_img
=
[
[
NSImage
imageNamed
:
@"progression-fill-middle"
]
retain
];
o_time_sld_gradient_right_img
=
[
NSImage
imageNamed
:
@"progression-fill-right"
];
o_time_sld_gradient_right_img
=
[
[
NSImage
imageNamed
:
@"progression-fill-right"
]
retain
];
}
}
}
}
...
...
modules/gui/macosx/playlistinfo.m
View file @
cc82de22
...
@@ -174,6 +174,7 @@ static VLCInfo *_o_sharedInstance = nil;
...
@@ -174,6 +174,7 @@ static VLCInfo *_o_sharedInstance = nil;
-
(
void
)
updatePanelWithItem
:(
input_item_t
*
)
_p_item
;
-
(
void
)
updatePanelWithItem
:(
input_item_t
*
)
_p_item
;
{
{
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
if
(
_p_item
!=
p_item
)
if
(
_p_item
!=
p_item
)
{
{
if
(
p_item
)
vlc_gc_decref
(
p_item
);
if
(
p_item
)
vlc_gc_decref
(
p_item
);
...
@@ -260,6 +261,7 @@ static VLCInfo *_o_sharedInstance = nil;
...
@@ -260,6 +261,7 @@ static VLCInfo *_o_sharedInstance = nil;
/* update the stats once to display p_item change faster */
/* update the stats once to display p_item change faster */
[
self
updateStatistics
];
[
self
updateStatistics
];
[
o_pool
release
];
}
}
-
(
void
)
setMeta
:
(
char
*
)
psz_meta
forLabel
:
(
id
)
theItem
-
(
void
)
setMeta
:
(
char
*
)
psz_meta
forLabel
:
(
id
)
theItem
...
...
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