From efdc3f1cfe9be1135c7f9d90a6b00474d0973eef Mon Sep 17 00:00:00 2001 From: Sebastien Bacher Date: Sun, 12 Jun 2005 13:09:44 +0000 Subject: return instead of using an assertion (Closes: #307149). --- gnome-settings-daemon/ChangeLog | 5 +++++ gnome-settings-daemon/gnome-settings-daemon.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gnome-settings-daemon/ChangeLog b/gnome-settings-daemon/ChangeLog index 8e918cdbe..5dd6c1313 100644 --- a/gnome-settings-daemon/ChangeLog +++ b/gnome-settings-daemon/ChangeLog @@ -1,3 +1,8 @@ +2005-06-12 Sebastien Bacher + + * gnome-settings-daemon.c: (clipboard_manager_watch_cb): + return instead of using an assertion (Closes: #307149). + 2005-06-12 Christophe Fergeau * actions/acme-volume-gstreamer.c: diff --git a/gnome-settings-daemon/gnome-settings-daemon.c b/gnome-settings-daemon/gnome-settings-daemon.c index cc22c9ba2..e1cc0e09a 100644 --- a/gnome-settings-daemon/gnome-settings-daemon.c +++ b/gnome-settings-daemon/gnome-settings-daemon.c @@ -180,7 +180,8 @@ clipboard_manager_watch_cb (Window window, } else { - g_assert (gdkwin); + if (!gdkwin) + return; gdk_window_remove_filter (gdkwin, clipboard_manager_event_filter, NULL); g_object_unref (gdkwin); } -- cgit v1.2.1