Changeset 117515 in webkit


Ignore:
Timestamp:
May 17, 2012 4:35:41 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Memory leak in NetworkInfoClient
https://bugs.webkit.org/show_bug.cgi?id=86603

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-05-17
Reviewed by Adam Barth.

Source/WebCore:

Fix a memory leak in NetworkInfoClient by using OwnPtr and
change the class not to inherite from RefCounted.

  • Modules/networkinfo/NetworkInfoClient.h:

Source/WebKit/efl:

Fix a memory leak in NetworkInfoClient by using OwnPtr and making
the client to be owned by the View.

  • ewk/ewk_view.cpp:

(_Ewk_View_Private_Data):
(_ewk_view_priv_new):

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r117512 r117515  
     12012-05-17  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
     2
     3        Memory leak in NetworkInfoClient
     4        https://bugs.webkit.org/show_bug.cgi?id=86603
     5
     6        Reviewed by Adam Barth.
     7
     8        Fix a memory leak in NetworkInfoClient by using OwnPtr and
     9        change the class not to inherite from RefCounted.
     10
     11        * Modules/networkinfo/NetworkInfoClient.h:
     12
    1132012-05-17  Joshua Bell  <jsbell@chromium.org>
    214
  • trunk/Source/WebCore/Modules/networkinfo/NetworkInfoClient.h

    r112815 r117515  
    3737class Page;
    3838
    39 class NetworkInfoClient : public RefCounted<NetworkInfoClient> {
     39class NetworkInfoClient {
    4040public:
    4141    virtual ~NetworkInfoClient() { }
  • trunk/Source/WebKit/efl/ChangeLog

    r117470 r117515  
     12012-05-17  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
     2
     3        Memory leak in NetworkInfoClient
     4        https://bugs.webkit.org/show_bug.cgi?id=86603
     5
     6        Reviewed by Adam Barth.
     7
     8        Fix a memory leak in NetworkInfoClient by using OwnPtr and making
     9        the client to be owned by the View.
     10
     11        * ewk/ewk_view.cpp:
     12        (_Ewk_View_Private_Data):
     13        (_ewk_view_priv_new):
     14
    1152012-05-17  Hironori Bono  <hbono@chromium.org>
    216
  • trunk/Source/WebKit/efl/ewk/ewk_view.cpp

    r117414 r117515  
    240240    Ewk_History* history;
    241241    OwnPtr<PageClientEfl> pageClient;
     242#if ENABLE(NETWORK_INFO)
     243    OwnPtr<WebCore::NetworkInfoClientEfl> networkInfoClient;
     244#endif
    242245#if ENABLE(INPUT_TYPE_COLOR)
    243246    WebCore::ColorChooserClient* colorChooserClient;
     
    729732
    730733#if ENABLE(NETWORK_INFO)
    731     WebCore::provideNetworkInfoTo(priv->page.get(), new WebCore::NetworkInfoClientEfl);
     734    priv->networkInfoClient = adoptPtr(new WebCore::NetworkInfoClientEfl);
     735    WebCore::provideNetworkInfoTo(priv->page.get(), priv->networkInfoClient.get());
    732736#endif
    733737
Note: See TracChangeset for help on using the changeset viewer.