2007-12-19 Alp Toker <alp@atoker.com>
authoralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Dec 2007 17:00:01 +0000 (17:00 +0000)
committeralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Dec 2007 17:00:01 +0000 (17:00 +0000)
        Reviewed by Holger Freyther.

        Delete when Destroy functions are called to avoid leaks

        This matches the Mac port.

        * WebCoreSupport/ChromeClientGtk.cpp:
        * WebCoreSupport/ContextMenuClientGtk.cpp:
        * WebCoreSupport/InspectorClientGtk.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28862 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/gtk/ChangeLog
WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp
WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp
WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp

index 421133cfc61f12b8637cc62a3448451f975e8634..dbfc390f3da4de0b4f4c28c3e412bc83e78486fe 100644 (file)
@@ -1,3 +1,15 @@
+2007-12-19  Alp Toker  <alp@atoker.com>
+
+        Reviewed by Holger Freyther.
+
+        Delete when Destroy functions are called to avoid leaks
+        
+        This matches the Mac port.
+
+        * WebCoreSupport/ChromeClientGtk.cpp:
+        * WebCoreSupport/ContextMenuClientGtk.cpp:
+        * WebCoreSupport/InspectorClientGtk.cpp:
+
 2007-12-14  Juan A. Suarez Romero  <jasuarez@igalia.com>
 
         Reviewed by Alp Toker.
index a528cb8a4990266c24c3cad53a0e8f01f7643a95..b852886c3da416d17f354d2ce5dc2841eb5d1f12 100644 (file)
@@ -41,7 +41,7 @@ ChromeClient::ChromeClient(WebKitWebView* webView)
 
 void ChromeClient::chromeDestroyed()
 {
-    notImplemented();
+    delete this;
 }
 
 FloatRect ChromeClient::windowRect()
index 3eb602e654453084dd47842a2a98e6c21992f1d6..9f8cf7dbbf2bc1cbe7d34c9a7b7161877fd7c1f3 100644 (file)
@@ -27,7 +27,7 @@ namespace WebKit {
 
 void ContextMenuClient::contextMenuDestroyed()
 {
-    notImplemented();
+    delete this;
 }
 
 PlatformMenuDescription ContextMenuClient::getCustomMenuFromDefaultItems(ContextMenu*)
index cbfd29c014772ce6519194c1ef64c23502760bf2..a54b6a0bdb2f1bfa3838b4614d00e479b80ad294 100644 (file)
@@ -26,7 +26,7 @@ namespace WebKit {
 
 void InspectorClient::inspectorDestroyed()
 {
-    notImplemented();
+    delete this;
 }
 
 Page* InspectorClient::createPage()