Closed
Bug 818518
Opened 12 years ago
Closed 12 years ago
Camera - error-reporting runnables will leak if NS_DispatchToMainThread() fails
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(blocking-basecamp:-)
RESOLVED
FIXED
blocking-basecamp | - |
People
(Reporter: mikeh, Assigned: mikeh)
Details
There are a couple of places where constructs like this are used:
+ rv = NS_DispatchToMainThread(new CameraErrorResult(mOnErrorCb, NS_LITERAL_STRING("FAILURE"), mCameraControl->GetWindowId()));
+ NS_ENSURE_SUCCESS(rv, rv);
In all cases, if NS_DispatchToMainThread() fails, the new CameraErrorResult object is not cleaned up.
The fix is to stuff each new object into an nsRefPtr<CameraErrorResult> first.
Assignee | ||
Updated•12 years ago
|
blocking-basecamp: --- → ?
Updated•12 years ago
|
blocking-basecamp: ? → -
Assignee | ||
Comment 1•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•