From 49f9de6182ff19dbfc13187dcca2fa5252c81a9f Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Thu, 1 Mar 2012 16:00:09 +0000 Subject: [PATCH] display: Fix crash when the screen setup changes after the Display panel has been closed. https://bugzilla.gnome.org/show_bug.cgi?id=670570 --- panels/display/cc-display-panel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c index c042bc677..fbc153332 100644 --- a/panels/display/cc-display-panel.c +++ b/panels/display/cc-display-panel.c @@ -117,6 +117,7 @@ static char *make_resolution_string (int width, int height); static GObject *cc_display_panel_constructor (GType gtype, guint n_properties, GObjectConstructParam *properties); +static void on_screen_changed (GnomeRRScreen *scr, gpointer data); static void cc_display_panel_get_property (GObject *object, @@ -159,6 +160,7 @@ cc_display_panel_finalize (GObject *object) self = CC_DISPLAY_PANEL (object); + g_signal_handlers_disconnect_by_func (self->priv->screen, on_screen_changed, self); g_object_unref (self->priv->screen); g_object_unref (self->priv->builder);