/pidgin/main: ba4d2f8a8025: Fix possible leak. The settings obje...

Elliott Sales de Andrade qulogic at pidgin.im
Mon Nov 5 18:15:57 EST 2012


Changeset: ba4d2f8a802557efd2fc0e00e6481378f3e027c9
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-09-10 00:51 -0400
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/ba4d2f8a8025

Description:

Fix possible leak. The settings object is ref'd by set_settings.

diffstat:

 pidgin/gtkutils.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff --git a/pidgin/gtkutils.c b/pidgin/gtkutils.c
--- a/pidgin/gtkutils.c
+++ b/pidgin/gtkutils.c
@@ -120,6 +120,7 @@ pidgin_setup_webview(GtkWidget *webview)
 		             NULL);
 
 		webkit_web_view_set_settings(WEBKIT_WEB_VIEW(webview), settings);
+		g_object_unref(settings);
 	}
 #endif
 }



More information about the Commits mailing list