[Webkit-unassigned] [Bug 39973] New: Memory Leak: The main resource of page is not free.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 31 18:06:32 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=39973

           Summary: Memory Leak: The main resource of page is not free.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Critical
          Priority: P1
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: genhua.liu at access-company.com


The leak is happen in ./WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp:
void FrameLoadedrClient::dispatchDidFinishLoading(...)

if(!coreResource)
    coreResource = loader->mainResource().releaseRef();

should be as following:

if(!coreResource)
    coreResource = loader->mainResource();

Otherwise, the reference count of coreResource is 2 at this point. And the main resource will not freed in this case.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list