Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
55de54d4
Commit
55de54d4
authored
Aug 15, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Make sure we cancel the crashLogURLConnection at exit.
parent
9c2f4cb9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+2
-0
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+8
-3
No files found.
modules/gui/macosx/intf.h
View file @
55de54d4
...
...
@@ -320,6 +320,8 @@ struct intf_sys_t
/* The timer that update the interface */
NSTimer
*
interfaceTimer
;
NSURLConnection
*
crashLogURLConnection
;
AppleRemote
*
o_remote
;
BOOL
b_remote_button_hold
;
/* true as long as the user holds the left,right,plus or minus on the remote control */
}
...
...
modules/gui/macosx/intf.m
View file @
55de54d4
...
...
@@ -1871,6 +1871,9 @@ end:
if
(
nib_wizard_loaded
)
[
o_wizard
release
];
[
crashLogURLConnection
cancel
];
[
crashLogURLConnection
release
];
[
o_embedded_list
release
];
[
o_interaction_list
release
];
[
o_eyetv
release
];
...
...
@@ -2127,7 +2130,7 @@ end:
[
req
setHTTPBody
:[
postBody
dataUsingEncoding
:
NSUTF8StringEncoding
]];
/* Released from delegate */
NSURLConnection
*
the
Connection
=
[[
NSURLConnection
alloc
]
initWithRequest
:
req
delegate
:
self
];
crashLogURL
Connection
=
[[
NSURLConnection
alloc
]
initWithRequest
:
req
delegate
:
self
];
}
-
(
void
)
connectionDidFinishLoading
:(
NSURLConnection
*
)
connection
...
...
@@ -2135,13 +2138,15 @@ end:
NSRunInformationalAlertPanel
(
_NS
(
"Crash Report successfully sent"
),
_NS
(
"Thanks for your report!"
),
_NS
(
"OK"
),
nil
,
nil
,
nil
);
[
connection
release
];
[
crashLogURLConnection
release
];
crashLogURLConnection
=
nil
;
}
-
(
void
)
connection
:(
NSURLConnection
*
)
connection
didFailWithError
:(
NSError
*
)
error
{
NSRunCriticalAlertPanel
(
_NS
(
"Error when sending the Crash Report"
),
[
error
localizedDescription
],
@"OK"
,
nil
,
nil
);
[
connection
release
];
[
crashLogURLConnection
release
];
crashLogURLConnection
=
nil
;
}
-
(
NSString
*
)
latestCrashLogPathPreviouslySeen
:(
BOOL
)
previouslySeen
...
...
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