<?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>19808</bug_id>
          
          <creation_ts>2008-06-28 22:27:59 -0700</creation_ts>
          <short_desc>LEAK: leak from WebCore::ImageSource::isSizeAvailable()</short_desc>
          <delta_ts>2008-06-28 23:09:55 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Cameron Zwarich (cpst)">zwarich</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84683</commentid>
    <comment_count>0</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-06-28 22:27:59 -0700</bug_when>
    <thetext>I found this by running the stress test with MallocStackLogging enabled:

Leak: 0x1a367600  size=3072	string &apos;Photoshop ICC profile&apos;
	Call stack: [thread 0xa05a0fa0]: | 0xba4d6 | NSApplicationMain | -[NSApplication run] | 0x86be | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | BlockUntilNextEventMatchingListInMode | ReceiveNextEventCommon | RunCurrentEventLoopInMode | CFRunLoopRunInMode | CFRunLoopRunSpecific | muxerSourcePerform | _CFURLConnectionSendCallbacks | sendDidReceiveDataCallback | _NSURLConnectionDidReceiveData | -[NSURLConnection(NSURLConnectionReallyInternal) sendDidReceiveData:originalLength:] | -[WebCoreResourceHandleAsDelegate connection:didReceiveData:lengthReceived:] | WebCore::ResourceLoader::didReceiveData(WebCore::ResourceHandle*, char const*, int, int) | WebCore::SubresourceLoader::didReceiveData(char const*, int, long long, bool) | WebCore::Loader::Host::didReceiveData(WebCore::SubresourceLoader*, char const*, int) | WebCore::CachedImage::data(WTF::PassRefPtr&lt;WebCore::SharedBuffer&gt;, bool) | WebCore::Image::setData(WTF::PassRefPtr&lt;WebCore::SharedBuffer&gt;, bool) | WebCore::BitmapImage::dataChanged(bool) | WebCore::BitmapImage::isSizeAvailable() | WebCore::ImageSource::isSizeAvailable() | CGImageSourceCopyPropertiesAtIndex | CGImageSourceGetPropertiesAtIndex | makeImagePlus | _CGImagePluginInitPNG | _cg_png_read_info | png_handle_iCCP | png_malloc | malloc | malloc_zone_malloc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84687</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-06-28 22:31:54 -0700</bug_when>
    <thetext>This leak looks like it is inside ImageIO&apos;s color management rather than in WebKit itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84696</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-06-28 23:07:40 -0700</bug_when>
    <thetext>&lt;rdar://problem/6042385&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84700</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-06-28 23:09:55 -0700</bug_when>
    <thetext>Moved to Radar and sent to ImageIO.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>