Closed Bug 186726 Opened 22 years ago Closed 22 years ago

Icon protocol handler NewURI should use NS_ADDREF

Categories

(Core :: Graphics: ImageLib, defect)

x86
Windows 2000
defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: hamfastgamgee)

References

()

Details

Attachments

(1 file, 1 obsolete file)

at this point, it is known to be non null.
Attached patch Patch for the issue (obsolete) — Splinter Review
This patch fixes the issue mentioned and also adds a check to see if SetSpec has failed or not.
Taking....
Assignee: timeless → andersma
Attachment #110161 - Flags: superreview?(darin)
Attachment #110161 - Flags: review+
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)
Attachment #110161 - Attachment is obsolete: true
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.

Attachment

General

Creator:
Created:
Updated:
Size: