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):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117515
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-05-17 Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com>
+
+ Memory leak in NetworkInfoClient
+ https://bugs.webkit.org/show_bug.cgi?id=86603
+
+ Reviewed by Adam Barth.
+
+ Fix a memory leak in NetworkInfoClient by using OwnPtr and
+ change the class not to inherite from RefCounted.
+
+ * Modules/networkinfo/NetworkInfoClient.h:
+
2012-05-17 Joshua Bell <jsbell@chromium.org>
IndexedDB: Remove IDBIndex.storeName
class NetworkInfoController;
class Page;
-class NetworkInfoClient : public RefCounted<NetworkInfoClient> {
+class NetworkInfoClient {
public:
virtual ~NetworkInfoClient() { }
+2012-05-17 Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com>
+
+ Memory leak in NetworkInfoClient
+ https://bugs.webkit.org/show_bug.cgi?id=86603
+
+ Reviewed by Adam Barth.
+
+ 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):
+
2012-05-17 Hironori Bono <hbono@chromium.org>
[Refactoring] Move platform-specific code in Editor::respondToChangedSelection to the WebKit layer
WebCore::ViewportArguments viewportArguments;
Ewk_History* history;
OwnPtr<PageClientEfl> pageClient;
+#if ENABLE(NETWORK_INFO)
+ OwnPtr<WebCore::NetworkInfoClientEfl> networkInfoClient;
+#endif
#if ENABLE(INPUT_TYPE_COLOR)
WebCore::ColorChooserClient* colorChooserClient;
#endif
#endif
#if ENABLE(NETWORK_INFO)
- WebCore::provideNetworkInfoTo(priv->page.get(), new WebCore::NetworkInfoClientEfl);
+ priv->networkInfoClient = adoptPtr(new WebCore::NetworkInfoClientEfl);
+ WebCore::provideNetworkInfoTo(priv->page.get(), priv->networkInfoClient.get());
#endif
#if ENABLE(VIBRATION)