Title: [87999] trunk/Source/WebKit/gtk
- Revision
- 87999
- Author
- [email protected]
- Date
- 2011-06-03 03:05:24 -0700 (Fri, 03 Jun 2011)
Log Message
2011-06-03 Sergio Villar Senin <[email protected]>
Reviewed by Martin Robinson.
[GTK] Unref the SoupSession used by WebKitGtk+ at exit
https://bugs.webkit.org/show_bug.cgi?id=60165
WebKitGtk+ creates a SoupSession instance to handle network stuff
that is never freed. We should unref that object at exit time.
* webkit/webkitglobals.cpp:
(webkitExit):
(webkitInit):
Modified Paths
Diff
Modified: trunk/Source/WebKit/gtk/ChangeLog (87998 => 87999)
--- trunk/Source/WebKit/gtk/ChangeLog 2011-06-03 09:53:09 UTC (rev 87998)
+++ trunk/Source/WebKit/gtk/ChangeLog 2011-06-03 10:05:24 UTC (rev 87999)
@@ -1,3 +1,17 @@
+2011-06-03 Sergio Villar Senin <[email protected]>
+
+ Reviewed by Martin Robinson.
+
+ [GTK] Unref the SoupSession used by WebKitGtk+ at exit
+ https://bugs.webkit.org/show_bug.cgi?id=60165
+
+ WebKitGtk+ creates a SoupSession instance to handle network stuff
+ that is never freed. We should unref that object at exit time.
+
+ * webkit/webkitglobals.cpp:
+ (webkitExit):
+ (webkitInit):
+
2011-05-28 Martin Robinson <[email protected]>
Reviewed by Gustavo Noronha Silva.
Modified: trunk/Source/WebKit/gtk/webkit/webkitglobals.cpp (87998 => 87999)
--- trunk/Source/WebKit/gtk/webkit/webkitglobals.cpp 2011-06-03 09:53:09 UTC (rev 87998)
+++ trunk/Source/WebKit/gtk/webkit/webkitglobals.cpp 2011-06-03 10:05:24 UTC (rev 87999)
@@ -244,6 +244,11 @@
return database;
}
+static void webkitExit()
+{
+ g_object_unref(webkit_get_default_session());
+}
+
void webkitInit()
{
static bool isInitialized = false;
@@ -288,6 +293,8 @@
g_object_unref(sniffer);
soup_session_add_feature_by_type(session, SOUP_TYPE_CONTENT_DECODER);
+
+ atexit(webkitExit);
}
namespace WebKit {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes