[empathy] Fix memleak in contact_widget_model_populate_columns. Since it not used anywhere
- From: Lars-Peter Clausen <larsc src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Fix memleak in contact_widget_model_populate_columns. Since it not used anywhere
- Date: Tue, 21 Apr 2009 04:50:03 -0400 (EDT)
commit 2a49858ada3c4cba3263441b1970b9a7dc7d5ed5
Author: Lars-Peter Clausen <lars metafoo de>
Date: Sun Apr 19 18:26:15 2009 +0200
Fix memleak in contact_widget_model_populate_columns. Since it not used anywhere
else it does not make sense to add a ref to the renderer, or does it?
---
libempathy-gtk/empathy-contact-widget.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 0b2fb82..ef259b0 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -53,7 +53,6 @@ typedef struct
EmpathyContactManager *manager;
EmpathyContact *contact;
EmpathyContactWidgetFlags flags;
- GtkCellRenderer *renderer;
guint widget_id_timeout;
GtkWidget *vbox_contact_widget;
@@ -924,11 +923,6 @@ contact_widget_model_populate_columns (EmpathyContactWidget *information)
gtk_tree_view_column_set_sort_column_id (column, COL_NAME);
gtk_tree_view_column_set_resizable (column,FALSE);
gtk_tree_view_column_set_clickable (GTK_TREE_VIEW_COLUMN (column), TRUE);
-
- if (information->renderer)
- g_object_unref (information->renderer);
-
- information->renderer = g_object_ref (renderer);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]