{"json_modified": "2016-03-28T08:20:01.020224", "uuid": "73d34dec-abe8-49ad-a044-bfc07355393d", "title": "XPCOM ownership guidelines", "url": "/en-US/docs/Mozilla/Tech/XPCOM/XPCOM_ownership_guidelines", "tags": ["XPCOM"], "translations": [{"uuid": "8fa6256b-a8d7-441c-8c55-67ac6e628cf5", "title": "XPCOM ownership guidelines", "url": "/ja/docs/XPCOM_ownership_guidelines", "tags": ["XPCOM"], "summary": "...\u81ea\u7136\u306a\u3053\u3068\u3067\u3059\u3002\u3082\u3057\u3042\u306a\u305f\u304c\u4e00\u6642\u7684\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u3063\u305f\u306e\u3067\u3042\u308c\u3070\u3001\u660e\u3089\u304b\u306b\u305d\u308c\u3092\u7834\u58ca\u3059\u308b\u306e\u306f\u3042\u306a\u305f\u306e\u8cac\u4efb\u3067\u3059\u3002\u305d\u308c\u306f\u78ba\u304b\u306b\u6240\u6709\u306e\u5fb4\u5019\u3067\u3059\u3002\u3082\u3057\u3042\u306a\u305f\u304c\u3088\u308a\u9577\u3044\u751f\u5b58\u671f\u9593\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u3063\u305f\u306e\u3067\u3042\u308c\u3070\u3001\u3042\u306a\u305f\u306f\u6240\u6709\u6a29\u3092\u5931\u3046\u307e\u3067\u305d\u308c\u3092\u6240\u6709\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2007-10-01T17:55:10", "review_tags": []}], "modified": "2015-07-17T01:22:37", "label": "XPCOM ownership guidelines", "localization_tags": [], "locale": "en-US", "id": 37422, "last_edit": "2007-10-01T07:01:32", "summary": "...naturally. If you create a temporary object, obviously it's up to you to destroy it. That's a sure sign of ownership. If you create an object with a longer lifespan, you will own it until you give ownership away.", "sections": [{"id": "If_you_made_it.2C_you_own_it.", "title": " If you made it, you own it. "}, {"id": "Needing_it_isn.27t.2C_by_itself.2C_a_valid_reason_for_owning_it.", "title": " Needing it isn't, by itself, a valid reason for owning it. "}, {"id": "If_you_own_it.2C_it_shouldn.27t_own_you.", "title": " If you own "}, {"id": "You_don.27t_need_to_own_it_if_it.27s_lifetime_is_guaranteed_to_be_longer_than_yours.", "title": " You don't need to own it if it's lifetime is guaranteed to be longer than yours. "}, {"id": "Parents_own_their_children_.28and_not_the_reverse.29.", "title": " Parents own their children (and not the reverse). "}, {"id": "Containers_own_the_things_they_contain_.28and_not_the_reverse.29.", "title": " Containers own the things they contain (and not the reverse). "}, {"id": "Use_nsCOMPtrs_to_implement_owning-pointers.", "title": " Use "}, {"id": "Original_Document_Information", "title": " Original Document Information "}], "slug": "Mozilla/Tech/XPCOM/XPCOM_ownership_guidelines", "review_tags": []}