[GTK] Memory leak in webkitwebnavigationaction.cpp
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Jul 2012 16:32:42 +0000 (16:32 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Jul 2012 16:32:42 +0000 (16:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=90787

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-07-09
Reviewed by Martin Robinson.

Fixed a memory leak in WebKitWebNavigationAction.

* webkit/webkitwebnavigationaction.cpp:
(webkit_web_navigation_action_finalize): Free the g_strdup()'d string.

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

Source/WebKit/gtk/ChangeLog
Source/WebKit/gtk/webkit/webkitwebnavigationaction.cpp

index a7de89d..ced4b14 100644 (file)
@@ -1,3 +1,15 @@
+2012-07-09  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
+
+        [GTK] Memory leak in webkitwebnavigationaction.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=90787
+
+        Reviewed by Martin Robinson.
+
+        Fixed a memory leak in WebKitWebNavigationAction.
+
+        * webkit/webkitwebnavigationaction.cpp:
+        (webkit_web_navigation_action_finalize): Free the g_strdup()'d string.
+
 2012-07-07  Zan Dobersek  <zandobersek@gmail.com>
 
         REGRESSION (r122035): fullscreen/exit-full-screen-iframe.html failing on GTK Linux 64-bit Release
index 72b9965..ca8a725 100644 (file)
@@ -123,6 +123,7 @@ static void webkit_web_navigation_action_finalize(GObject* obj)
     WebKitWebNavigationActionPrivate* priv = navigationAction->priv;
 
     g_free(priv->originalUri);
+    g_free(priv->targetFrame);
 
     G_OBJECT_CLASS(webkit_web_navigation_action_parent_class)->finalize(obj);
 }