[evolution] Bug #631870 - Memory leak in e_week_view after GtkObject removal



commit 2ac302d4b2b5b6cfd3928f8a00a4d3c190d58155
Author: Milan Crha <mcrha redhat com>
Date:   Mon Oct 25 17:28:17 2010 +0200

    Bug #631870 - Memory leak in e_week_view after GtkObject removal

 libgnomecanvas/gnome-canvas.c |    2 +-
 mail/e-mail-reader.c          |    2 +-
 widgets/misc/e-printable.c    |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgnomecanvas/gnome-canvas.c b/libgnomecanvas/gnome-canvas.c
index cacabff..014c57d 100644
--- a/libgnomecanvas/gnome-canvas.c
+++ b/libgnomecanvas/gnome-canvas.c
@@ -165,7 +165,7 @@ gnome_canvas_item_get_type (void)
 			NULL			/* value_table */
 		};
 
-		canvas_item_type = g_type_register_static (G_TYPE_OBJECT, "GnomeCanvasItem",
+		canvas_item_type = g_type_register_static (G_TYPE_INITIALLY_UNOWNED, "GnomeCanvasItem",
 							   &object_info, 0);
 	}
 
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index 34a6f5b..114bca0 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -111,7 +111,7 @@ static GQuark quark_forward_style;
 static GQuark quark_reply_style;
 static guint signals[LAST_SIGNAL];
 
-G_DEFINE_INTERFACE (EMailReader, e_mail_reader, G_TYPE_OBJECT)
+G_DEFINE_INTERFACE (EMailReader, e_mail_reader, G_TYPE_INITIALLY_UNOWNED)
 
 static void
 mail_reader_private_free (EMailReaderPrivate *priv)
diff --git a/widgets/misc/e-printable.c b/widgets/misc/e-printable.c
index aa723f6..00bb57d 100644
--- a/widgets/misc/e-printable.c
+++ b/widgets/misc/e-printable.c
@@ -33,7 +33,7 @@
 G_DEFINE_TYPE (
 	EPrintable,
 	e_printable,
-	G_TYPE_OBJECT)
+	G_TYPE_INITIALLY_UNOWNED)
 
 enum {
 	PRINT_PAGE,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]