<?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>51086</bug_id>
          
          <creation_ts>2010-12-14 18:59:22 -0800</creation_ts>
          <short_desc>[Qt] QWebView::setUrl leaks 6 MB</short_desc>
          <delta_ts>2011-04-06 11:09:21 -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>JavaScriptCore</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P3</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>webkit95</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>menard</cc>
    
    <cc>zoltan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>322435</commentid>
    <comment_count>0</comment_count>
    <who name="">webkit95</who>
    <bug_when>2010-12-14 18:59:22 -0800</bug_when>
    <thetext>According to BoundsChecker, and verified with Memory Validator, the following code results 10,245 leaks for a total 6 MB in memory leaked:

#include &lt;QApplication&gt;
#include &lt;QWebView&gt;

int main(int argc, char *argv[])
{
  QApplication a(argc, argv);
  QWebView*  pWidget = new QWebView();
  pWidget-&gt;setUrl(QUrl(&quot;http://www.google.com&quot;));
  pWidget-&gt;show();

  a.exec();

  delete pWidget;

  return 0;
}

using Qt 4.6.3.  The largest single leak is 4.2 MB with the following call stack:

RegisterFile::RegisterFile
Interpreter::Interpreter
JSGlobalData::JSGlobalData
JSGlobalData::create
JSGlobalData::createLeaked

Additional calls to setUrl add 6-7 additional MBs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>334300</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-01-14 07:44:16 -0800</bug_when>
    <thetext>Please follow this to report bugs on QtWebKit: http://trac.webkit.org/wiki/QtWebKitBugs

Zoltan, does that looks valid or is it a buggy tool?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352870</commentid>
    <comment_count>2</comment_count>
    <who name="Zoltan Horvath">zoltan</who>
    <bug_when>2011-02-17 07:33:45 -0800</bug_when>
    <thetext>I don&apos;t know MS BoundsChecke. I don&apos;t think that these classes are leaking.

Reporter, can you reproduce this with latest trunk or with Qt-4.7.1 also?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>380641</commentid>
    <comment_count>3</comment_count>
    <who name="Alexis Menard (darktears)">menard</who>
    <bug_when>2011-04-06 11:09:21 -0700</bug_when>
    <thetext>I can&apos;t find leak with Valgrind. I close.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>