<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>134914</bug_id>
          
          <creation_ts>2014-07-14 17:24:03 -0700</creation_ts>
          <short_desc>[Cocoa] _WKRemoteObjectInterface leaks NSString ivar</short_desc>
          <delta_ts>2014-07-15 11:01:32 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Joseph Pecoraro">joepeck</assigned_to>
          <cc>andersca</cc>
    
    <cc>commit-queue</cc>
    
    <cc>joepeck</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1022370</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-07-14 17:24:03 -0700</bug_when>
    <thetext>_WKRemoteObjectInterface copies _identifier in initialization, but doesn&apos;t have a -dealloc to release it.

&lt;rdar://problem/17672075&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1022371</commentid>
    <comment_count>1</comment_count>
      <attachid>234895</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-07-14 17:26:26 -0700</bug_when>
    <thetext>Created attachment 234895
[PATCH] Proposed Fix

Alternatively this could be an explicit ivar with RetainPtr.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1022372</commentid>
    <comment_count>2</comment_count>
      <attachid>234895</attachid>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2014-07-14 17:27:28 -0700</bug_when>
    <thetext>Comment on attachment 234895
[PATCH] Proposed Fix

Please use a RetainPtr instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1022389</commentid>
    <comment_count>3</comment_count>
      <attachid>234895</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-07-14 18:52:53 -0700</bug_when>
    <thetext>Comment on attachment 234895
[PATCH] Proposed Fix

Clearing flags on attachment: 234895

Committed r171098: &lt;http://trac.webkit.org/changeset/171098&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1022390</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-07-14 18:52:56 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1022392</commentid>
    <comment_count>5</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-07-14 19:03:29 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 234895 [details])
&gt; Please use a RetainPtr instead.

Heh, you should have cq-. I&apos;ll follow-up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1022393</commentid>
    <comment_count>6</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-07-14 19:04:35 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #2)
&gt; &gt; (From update of attachment 234895 [details] [details])
&gt; &gt; Please use a RetainPtr instead.
&gt; 
&gt; Heh, you should have cq-. I&apos;ll follow-up.

Oh, I think there was a review collision and the flags got overwritten.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1022398</commentid>
    <comment_count>7</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-07-14 19:18:31 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #2)
&gt; &gt; (From update of attachment 234895 [details] [details])
&gt; &gt; Please use a RetainPtr instead.
&gt; 
&gt; Heh, you should have cq-. I&apos;ll follow-up.

The identifier property is (as written) atomic, so making an explicit RetainPtr&lt;NSString&gt; ivar and reimplementing the getter atomically seems like unnecessary extra work considering the simplicity of the current patch. Let me know if you feel strongly about this, or perhaps the atomic is unnecessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1022512</commentid>
    <comment_count>8</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2014-07-15 11:01:32 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #5)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; (From update of attachment 234895 [details] [details] [details])
&gt; &gt; &gt; Please use a RetainPtr instead.
&gt; &gt; 
&gt; &gt; Heh, you should have cq-. I&apos;ll follow-up.
&gt; 
&gt; The identifier property is (as written) atomic, so making an explicit RetainPtr&lt;NSString&gt; ivar and reimplementing the getter atomically seems like unnecessary extra work considering the simplicity of the current patch. Let me know if you feel strongly about this, or perhaps the atomic is unnecessary.

Make it non-atomic instead.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>234895</attachid>
            <date>2014-07-14 17:26:26 -0700</date>
            <delta_ts>2014-07-14 18:52:53 -0700</delta_ts>
            <desc>[PATCH] Proposed Fix</desc>
            <filename>proposed-fix.patch</filename>
            <type>text/plain</type>
            <size>1457</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQyL0No
YW5nZUxvZwppbmRleCBjMTMzYzE5Li4yNGRlNz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