<?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>4795</bug_id>
          
          <creation_ts>2005-09-01 15:12:56 -0700</creation_ts>
          <short_desc>leak inside DOM::DocumentImpl::DocumentImpl, seen running webkit tests</short_desc>
          <delta_ts>2005-09-06 19:35:16 -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>WebKit Misc.</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>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Sullivan">sullivan</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18195</commentid>
    <comment_count>0</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2005-09-01 15:12:56 -0700</bug_when>
    <thetext>This bug is also in Radar as &lt;rdar://4233800&gt;

This is split off from 4665. This is one of the many leaks found with these steps:

1. Build a development build of tip-of-tree WebKit
2. use run-webkit-tests --leaks

Leak: 0x1fff3710  size=16	
	0x00000002 0x00000000 0x21d581f0 0x00010001 	........!.......
	Call stack: [thread 239f]: | 0x0 | start | _start | main | dumpRenderTree | -[NSRunLoop 
runMode:beforeDate:] | CFRunLoopRunSpecific | __CFRunLoopRun | __CFRunLoopDoSources0 | 
_sendCallbacks | -[NSURLConnection(NSURLConnectionInternal) _sendCallbacks] | -[NSURLConnection
(NSURLConnectionInternal) _sendDidReceiveDataCallback] | -[WebLoader 
connection:didReceiveData:lengthReceived:] | -[WebMainResourceLoader 
didReceiveData:lengthReceived:] | -[WebLoader didReceiveData:lengthReceived:] | -
[WebMainResourceLoader addData:] | -[WebDataSource(WebPrivate) _receivedData:] | -
[WebHTMLRepresentation receivedData:withDataSource:] | -[WebBridge 
receivedData:textEncodingName:] | -[WebCoreBridge setEncoding:userChosen:] | 
KWQKHTMLPart::setEncoding(QString const&amp;, bool) | KHTMLPart::receivedFirstData() | KHTMLPart::begin
(KURL const&amp;, int, int) | DOM::DOMImplementationImpl::createHTMLDocument(KHTMLView*) | 
DOM::HTMLDocumentImpl::HTMLDocumentImpl[in-charge](DOM::DOMImplementationImpl*, 
KHTMLView*) | DOM::HTMLDocumentImpl::HTMLDocumentImpl[unified]
(DOM::DOMImplementationImpl*, KHTMLView*) | DOM::DocumentImpl::DocumentImpl[not-in-charge]
(DOM::DOMImplementationImpl*, KHTMLView*) | DOM::DocumentImpl::DocumentImpl[unified]
(DOM::DOMImplementationImpl*, KHTMLView*) | operator new(unsigned long) | malloc 

This one still sometimes occurs this morning (most of the other leaks from 4665 have been fixed).
I haven&apos;t caught this one in a single-test leaks output, but I saw it once today with the output of run-
webkit-tests --leaks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18938</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-09-06 19:35:16 -0700</bug_when>
    <thetext>Checked in a fix that should fix the leak described in this bug, as well as two others. The three bugs are 
bug 4795, bug 4796, and bug 4797.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>