Closed Bug 1122990 Opened 9 years ago Closed 9 years ago

Mark nsPropertiesParser as stack class, and make its mProps member a strong ref; 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 8550796 [details] [diff] [review]
Mark nsPropertiesParser as stack class, and make its mProps member a strong ref

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

::: xpcom/ds/nsPersistentProperties.cpp
@@ +176,5 @@
>                                  // escaped whitespaces
>    EParserState mState;
>    // if we see a '\' then we enter this special state
>    EParserSpecial mSpecialState;
> +  nsCOMPtr<nsIPersistentProperties> mProps;

I dunno, in some ways it would be better to reorganize the code so that we didn't have to take a reference here, but meh.
Attachment #8550796 - Flags: review?(nfroyd) → review+
https://hg.mozilla.org/mozilla-central/rev/d6161c63e250
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: