Closed Bug 1123006 Opened 9 years ago Closed 9 years ago

Mark FileData as stack class, and its data member as nsCOMPtr; r=froydnj

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

Details

Attachments

(1 file)

      No description provided.
Assignee: nobody → ehsan
Comment on attachment 8550812 [details] [diff] [review]
Mark FileData as stack class, and its data member as nsCOMPtr

Review of attachment 8550812 [details] [diff] [review]:
-----------------------------------------------------------------

::: xpcom/io/nsDirectoryService.cpp
@@ +328,5 @@
>          if (aData->data) {
>            nsCOMPtr<nsISimpleEnumerator> unionFiles;
>  
>            NS_NewUnionEnumerator(getter_AddRefs(unionFiles),
> +                                (nsISimpleEnumerator*)aData->data.get(), newFiles);

All the casting going on here is very dodgy.
Attachment #8550812 - Flags: review?(nfroyd) → review+
https://hg.mozilla.org/mozilla-central/rev/a5de50c69a8d
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: