<?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>11194</bug_id>
          
          <creation_ts>2006-10-06 13:53:15 -0700</creation_ts>
          <short_desc>SpinneretWebHost doesn&apos;t set refcount properly</short_desc>
          <delta_ts>2006-10-16 01:53:22 -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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</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>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Krzysztof Kowalczyk">kkowalczyk</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>53918</commentid>
    <comment_count>0</comment_count>
    <who name="Krzysztof Kowalczyk">kkowalczyk</who>
    <bug_when>2006-10-06 13:53:15 -0700</bug_when>
    <thetext>SpinneretWebHost doesn&apos;t have a constructor and its m_refCount field is not set properly. You can verify this by setting a brakpoint in debug version in Spinerette.cpp at line ~187:

    gWebHost = new SpinneretWebHost();
&lt;-- in debug here gWebHost-&gt;m_refCount is 0xcdcdcdcd, which means &quot;uninitialized&quot;
    gWebHost-&gt;AddRef();

No patch but the fix should be trivial: supply
SpinneretWebHost::SpinneretWebHost() : m_refCount(0) {}
(unless for some reason SpinneretWebHost is not supposed to have a constructor)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52470</commentid>
    <comment_count>1</comment_count>
    <who name="Krzysztof Kowalczyk">kkowalczyk</who>
    <bug_when>2006-10-16 01:53:22 -0700</bug_when>
    <thetext>Has been fixed in another checkin.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>