/pidgin/main: 2541e55ae19d: Only remove source if non-zero.

Elliott Sales de Andrade qulogic at pidgin.im
Mon Aug 6 03:42:20 EDT 2012


Changeset: 2541e55ae19d081fe75a942b46e4c90ed82880af
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-08-04 16:45 -0400
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/2541e55ae19d

Description:

Only remove source if non-zero.

diffstat:

 pidgin/gtkwebview.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff --git a/pidgin/gtkwebview.c b/pidgin/gtkwebview.c
--- a/pidgin/gtkwebview.c
+++ b/pidgin/gtkwebview.c
@@ -408,7 +408,8 @@ gtk_webview_finalize(GObject *webview)
 	GtkWebViewPriv *priv = GTK_WEBVIEW_GET_PRIVATE(webview);
 	gpointer temp;
 
-	g_source_remove(priv->loader);
+	if (priv->loader)
+		g_source_remove(priv->loader);
 
 	while (!g_queue_is_empty(priv->load_queue)) {
 		temp = g_queue_pop_head(priv->load_queue);



More information about the Commits mailing list