Closed Bug 1123003 Opened 9 years ago Closed 9 years ago

Clarify the ownership of xptiInterfaceInfo pointers in xptiprivate.h; 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 8550809 [details] [diff] [review]
Clarify the ownership of xptiInterfaceInfo pointers in xptiprivate.h

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

::: xpcom/reflect/xptinfo/xptiInterfaceInfo.cpp
@@ -689,4 @@
>                   !mParent &&
>                   mEntry->Parent(),
>                  "bad BuildParent call");
> -    mParent = mEntry->Parent()->InterfaceInfo().take();

Ha!

::: xpcom/reflect/xptinfo/xptiprivate.h
@@ +304,5 @@
>  
>      xptiInterfaceEntry*     mParent;      // Valid only when fully resolved
>  
> +    xptiInterfaceInfo* MOZ_UNSAFE_REF("The safety of this pointer is ensured "
> +                                      "by the semantics of XPTIWorkingSet.")

xptiWorkingSet, please, so grep can find it easily.
Attachment #8550809 - Flags: review?(nfroyd) → review+
https://hg.mozilla.org/mozilla-central/rev/b8f271c913a9
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: