Closed
Bug 186726
Opened 22 years ago
Closed 22 years ago
Icon protocol handler NewURI should use NS_ADDREF
Categories
(Core :: Graphics: ImageLib, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: timeless, Assigned: hamfastgamgee)
References
()
Details
Attachments
(1 file, 1 obsolete file)
677 bytes,
patch
|
Details | Diff | Splinter Review |
at this point, it is known to be non null.
Assignee | ||
Comment 1•22 years ago
|
||
This patch fixes the issue mentioned and also adds a check to see if SetSpec
has failed or not.
Attachment #110161 -
Flags: superreview?(darin)
Attachment #110161 -
Flags: review+
Comment 3•22 years ago
|
||
Comment on attachment 110161 [details] [diff] [review]
Patch for the issue
>Index: icon/nsIconProtocolHandler.cpp
> if (!uri) return NS_ERROR_FAILURE;
>+ if (NS_FAILED(rv))
>+ return rv;
nit, no newline for consistency:
if (NS_FAILED(rv)) return rv;
> *result = uri;
>+ NS_ADDREF(*result);
nit, combine these two lines:
NS_ADDREF(*result = uri);
sr=darin (w/ or w/o suggested changes)
Assignee | ||
Updated•22 years ago
|
Attachment #110161 -
Attachment is obsolete: true
Assignee | ||
Comment 4•22 years ago
|
||
Assignee | ||
Comment 5•22 years ago
|
||
timeless checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Attachment #110161 -
Flags: superreview?(darin)
You need to log in
before you can comment on or make changes to this bug.
Description
•