changeset 3702:1c1d3d84f313

get rid of mainwin_timeout_id only if mainwin_timeout_id is non-zero
author William Pitcock <nenolod@atheme.org>
date Sun, 07 Oct 2007 01:04:41 -0500
parents e766d3aec087
children 2e1a1d734112
files src/audacious/ui_main.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_main.c	Sun Oct 07 00:32:35 2007 -0500
+++ b/src/audacious/ui_main.c	Sun Oct 07 01:04:41 2007 -0500
@@ -398,7 +398,8 @@
     gtk_widget_hide(playlistwin);
     gtk_widget_hide(mainwin);
 
-    g_source_remove(mainwin_timeout_id);
+    if (mainwin_timeout_id)
+        g_source_remove(mainwin_timeout_id);
 
     bmp_config_save();
     gtk_accel_map_save(bmp_paths[BMP_PATH_ACCEL_FILE]);