diff options
-rw-r--r-- | libmate-desktop/mate-rr-labeler.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmate-desktop/mate-rr-labeler.c b/libmate-desktop/mate-rr-labeler.c index fe9a50c..577a33a 100644 --- a/libmate-desktop/mate-rr-labeler.c +++ b/libmate-desktop/mate-rr-labeler.c @@ -287,11 +287,17 @@ mate_rr_labeler_hide (MateRRLabeler *labeler) g_return_if_fail (MATE_IS_RR_LABELER (labeler)); + if (labeler->windows == NULL) + return; + for (i = 0; i < labeler->num_outputs; i++) if (labeler->windows[i] != NULL) { gtk_widget_destroy (labeler->windows[i]); labeler->windows[i] = NULL; } + g_free (labeler->windows); + labeler->windows = NULL; + } void |