<?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>60165</bug_id>
          
          <creation_ts>2011-05-04 06:28:18 -0700</creation_ts>
          <short_desc>[GTK] Unref the SoupSession used by WebKitGtk+ at exit</short_desc>
          <delta_ts>2011-06-03 03:05:37 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergio Villar Senin">svillar</reporter>
          <assigned_to name="Sergio Villar Senin">svillar</assigned_to>
          <cc>eric</cc>
    
    <cc>mrobinson</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>397874</commentid>
    <comment_count>0</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-05-04 06:28:18 -0700</bug_when>
    <thetext>[GTK] Unref the SoupSession used by WebKitGtk+ at exit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>397877</commentid>
    <comment_count>1</comment_count>
      <attachid>92229</attachid>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-05-04 06:31:23 -0700</bug_when>
    <thetext>Created attachment 92229
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>397937</commentid>
    <comment_count>2</comment_count>
      <attachid>92229</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-05-04 08:29:42 -0700</bug_when>
    <thetext>Comment on attachment 92229
Patch

Have you looked at using DEFINE_STATIC_LOCAL and a GRefPtr to do this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>398835</commentid>
    <comment_count>3</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-05-05 10:57:11 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 92229 [details])
&gt; Have you looked at using DEFINE_STATIC_LOCAL and a GRefPtr to do this?

I understood that DEFINE_STATIC_LOCAL was used to avoid destructor calling on exit which is totally the contrary to what I&apos;m trying to achieve. Maybe I&apos;m not understanding what you mean...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>398932</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-05-05 12:35:24 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; (From update of attachment 92229 [details] [details])
&gt; &gt; Have you looked at using DEFINE_STATIC_LOCAL and a GRefPtr to do this?
&gt; 
&gt; I understood that DEFINE_STATIC_LOCAL was used to avoid destructor calling on exit which is totally the contrary to what I&apos;m trying to achieve. Maybe I&apos;m not understanding what you mean...

It&apos;s used to avoid false leaks reporting on exit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414170</commentid>
    <comment_count>5</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2011-06-02 09:00:58 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; It&apos;s used to avoid false leaks reporting on exit.

From the macro documentation:

// Use these to declare and define a static local variable (static T;) so that
//  it is leaked so that its destructors are not called at exit. Using this
//  macro also allows workarounds a compiler bug present in Apple&apos;s version of GCC 4.0.1.

So it seems to me it does the opposite of what we want?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414177</commentid>
    <comment_count>6</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-06-02 09:09:41 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; It&apos;s used to avoid false leaks reporting on exit.
&gt; 
&gt; From the macro documentation:
&gt; 
&gt; // Use these to declare and define a static local variable (static T;) so that
&gt; //  it is leaked so that its destructors are not called at exit. Using this
&gt; //  macro also allows workarounds a compiler bug present in Apple&apos;s version of GCC 4.0.1.
&gt; 
&gt; So it seems to me it does the opposite of what we want?

Oh right. It seems so!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414751</commentid>
    <comment_count>7</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-06-03 03:05:37 -0700</bug_when>
    <thetext>Committed r87999: &lt;http://trac.webkit.org/changeset/87999&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>92229</attachid>
            <date>2011-05-04 06:31:23 -0700</date>
            <delta_ts>2011-06-02 09:10:00 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-60165-20110504153119.patch</filename>
            <type>text/plain</type>
            <size>1549</size>
            <attacher name="Sergio Villar Senin">svillar</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODU0MTMKZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQvZ3Rr
L0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvZ3RrL0NoYW5nZUxvZwppbmRleCAyZDI1NzY4ODg1
MjczMDRhOGEyNGJmMjM4MDg5YzA0ZTQ5ODEwMzhjLi5iNmU4NDVlMjJhY2RmMzJjODI2N2U3YjY3
YzY3YjQ5ZGEzMmUyMzc0IDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0L2d0ay9DaGFuZ2VMb2cK
KysrIGIvU291cmNlL1dlYktpdC9ndGsvQ2hhbmdlTG9nCkBAIC0x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KyBiL1NvdXJjZS9XZWJLaXQvZ3Rr
L3dlYmtpdC93ZWJraXRnbG9iYWxzLmNwcApAQCAtMjQ0LDYgKzI0NCwxMSBAQCBXZWJLaXRJY29u
RGF0YWJhc2UqIHdlYmtpdF9nZXRfaWNvbl9kYXRhYmFzZSgpCiAgICAgcmV0dXJuIGRhdGFiYXNl
OwogfQogCitzdGF0aWMgdm9pZCB3ZWJraXRFeGl0KCkKK3sKKyAgICBnX29iamVjdF91bnJlZiAo
d2Via2l0X2dldF9kZWZhdWx0X3Nlc3Npb24oKSk7Cit9CisKIHZvaWQgd2Via2l0SW5pdCgpCiB7
CiAgICAgc3RhdGljIGJvb2wgaXNJbml0aWFsaXplZCA9IGZhbHNlOwpAQCAtMjg3LDYgKzI5Miw4
IEBAIHZvaWQgd2Via2l0SW5pdCgpCiAgICAgZ19vYmplY3RfdW5yZWYoc25pZmZlcik7CiAKICAg
ICBzb3VwX3Nlc3Npb25fYWRkX2ZlYXR1cmVfYnlfdHlwZShzZXNzaW9uLCBTT1VQX1RZUEVfQ09O
VEVOVF9ERUNPREVSKTsKKworICAgIGF0ZXhpdCh3ZWJraXRFeGl0KTsKIH0KIAogbmFtZXNwYWNl
IFdlYktpdCB7Cg==
</data>
<flag name="review"
          id="85176"
          type_id="1"
          status="+"
          setter="mrobinson"
    />
          </attachment>
      

    </bug>

</bugzilla>