[gnome-control-center] color: Don't leak the calibrate dialog
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] color: Don't leak the calibrate dialog
- Date: Tue, 1 Oct 2013 08:05:31 +0000 (UTC)
commit 62faba9d807355b5112445c59af7809b757930d3
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Sep 16 22:56:41 2013 +0200
color: Don't leak the calibrate dialog
https://bugzilla.gnome.org/show_bug.cgi?id=708286
panels/color/cc-color-calibrate.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/color/cc-color-calibrate.c b/panels/color/cc-color-calibrate.c
index 49e8ff1..f7932a3 100644
--- a/panels/color/cc-color-calibrate.c
+++ b/panels/color/cc-color-calibrate.c
@@ -50,6 +50,7 @@ struct _CcColorCalibratePrivate
GnomeRROutput *output;
GnomeRRScreen *x11_screen;
GtkBuilder *builder;
+ GtkWindow *window;
GtkWidget *sample_widget;
guint gamma_size;
CdProfileQuality quality;
@@ -1036,6 +1037,7 @@ cc_color_calibrate_finalize (GObject *object)
CcColorCalibrate *calibrate = CC_COLOR_CALIBRATE (object);
CcColorCalibratePrivate *priv = calibrate->priv;
+ g_clear_pointer (&priv->window, gtk_widget_destroy);
g_clear_object (&priv->device);
g_clear_object (&priv->proxy_helper);
g_clear_object (&priv->proxy_inhibit);
@@ -1133,6 +1135,7 @@ cc_color_calibrate_init (CcColorCalibrate *calibrate)
cc_color_calibrate_alpha_screen_changed_cb (GTK_WINDOW (window), NULL, calibrate);
g_signal_connect (window, "screen-changed",
G_CALLBACK (cc_color_calibrate_alpha_screen_changed_cb), calibrate);
+ priv->window = window;
}
CcColorCalibrate *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]