diff options
author | lukefromdc <[email protected]> | 2017-08-22 23:33:39 -0400 |
---|---|---|
committer | monsta <[email protected]> | 2017-11-13 23:05:33 +0300 |
commit | cab29c45f111b96b347d0b6e3c2f5bc302a700f4 (patch) | |
tree | d7099ee9a0288b290e4e3d85e480b8ff11039997 /applets/clock | |
parent | 30c628a93210d221cebb065a3e403a8c3c41812b (diff) | |
download | mate-panel-cab29c45f111b96b347d0b6e3c2f5bc302a700f4.tar.bz2 mate-panel-cab29c45f111b96b347d0b6e3c2f5bc302a700f4.tar.xz |
clock:disconnect signal handlers on destroy
Don't just check for the clock's existance and return if it has been destroyed, disconnect them entirely when the clock is destroyed
Diffstat (limited to 'applets/clock')
-rw-r--r-- | applets/clock/clock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c index b893b738..d5314ed4 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -750,6 +750,9 @@ static void destroy_clock (GtkWidget * widget, ClockData *cd) { if (cd->settings) + g_signal_handlers_disconnect_by_data( cd->settings, cd); + + if (cd->settings) g_object_unref (cd->settings); cd->settings = NULL; |