summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2014-02-25 10:25:47 -0500
committerShaun McCance <shaunm@gnome.org>2014-02-25 10:25:47 -0500
commitb1056e5a632ad2fe28bf30c46ad07f54278f7532 (patch)
treeef767ef385d76cb3a3e9a8ef062a36086e905040 /src
parent9c3f2e251e4b91d0f191cfe84edff99d56a5ad34 (diff)
downloadyelp-b1056e5a632ad2fe28bf30c46ad07f54278f7532.tar.gz
Don't use g_source_remove for signal handlers
This fixes reliable crashes when changing bookmarks or the read later list if any single window has been closed.
Diffstat (limited to 'src')
-rw-r--r--src/yelp-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yelp-window.c b/src/yelp-window.c
index d36c8fee..e84e226f 100644
--- a/src/yelp-window.c
+++ b/src/yelp-window.c
@@ -335,12 +335,12 @@ yelp_window_dispose (GObject *object)
}
if (priv->read_later_changed) {
- g_source_remove (priv->read_later_changed);
+ g_signal_handler_disconnect (priv->application, priv->read_later_changed);
priv->read_later_changed = 0;
}
if (priv->bookmarks_changed) {
- g_source_remove (priv->bookmarks_changed);
+ g_signal_handler_disconnect (priv->application, priv->bookmarks_changed);
priv->bookmarks_changed = 0;
}