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
0a59bb70
Commit
0a59bb70
authored
Jun 19, 2015
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iOS dialog provider: fix retain cycle
parent
4f70ea7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
modules/gui/ios_dialog_provider/dialogProvider.m
modules/gui/ios_dialog_provider/dialogProvider.m
+5
-0
No files found.
modules/gui/ios_dialog_provider/dialogProvider.m
View file @
0a59bb70
...
...
@@ -226,6 +226,7 @@ static int DisplayLogin(vlc_object_t *p_this, const char *type, vlc_value_t prev
[
dict
setObject
:
@
(
no
)
forKey
:
@"no"
];
if
(
cancel
)
[
dict
setObject
:
@
(
cancel
)
forKey
:
@"cancel"
];
[
dict
retain
];
return
dict
;
}
...
...
@@ -238,6 +239,7 @@ static int DisplayLogin(vlc_object_t *p_this, const char *type, vlc_value_t prev
VLCBlockingAlertView
*
alert
=
[[
VLCBlockingAlertView
alloc
]
initWithTitle
:[
dialog
objectForKey
:
@"title"
]
message
:[
dialog
objectForKey
:
@"message"
]
delegate
:
nil
cancelButtonTitle
:
@"OK"
otherButtonTitles
:
nil
];
alert
.
completion
=
^
(
BOOL
cancelled
,
NSInteger
buttonIndex
)
{
[
alert
release
];
[
dialog
release
];
};
[
alert
show
];
}
...
...
@@ -249,6 +251,7 @@ static int DisplayLogin(vlc_object_t *p_this, const char *type, vlc_value_t prev
VLCBlockingAlertView
*
alert
=
[[
VLCBlockingAlertView
alloc
]
initWithTitle
:[
dialog
objectForKey
:
@"title"
]
message
:[
dialog
objectForKey
:
@"message"
]
delegate
:
nil
cancelButtonTitle
:
@"OK"
otherButtonTitles
:
nil
];
alert
.
completion
=
^
(
BOOL
cancelled
,
NSInteger
buttonIndex
)
{
[
alert
release
];
[
dialog
release
];
};
[
alert
show
];
}
...
...
@@ -276,6 +279,7 @@ static int DisplayLogin(vlc_object_t *p_this, const char *type, vlc_value_t prev
dispatch_semaphore_wait
(
sema
,
DISPATCH_TIME_FOREVER
);
[
alert
release
];
[
dialog
release
];
return
@
(
ret
);
}
...
...
@@ -309,6 +313,7 @@ static int DisplayLogin(vlc_object_t *p_this, const char *type, vlc_value_t prev
dispatch_semaphore_wait
(
sema
,
DISPATCH_TIME_FOREVER
);
[
alert
release
];
[
dialog
release
];
return
dict
;
}
...
...
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