aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-clipped-label.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/widgets/misc/e-clipped-label.c b/widgets/misc/e-clipped-label.c
index e6666ae451..6f6fc9731d 100644
--- a/widgets/misc/e-clipped-label.c
+++ b/widgets/misc/e-clipped-label.c
@@ -48,6 +48,7 @@ static void e_clipped_label_size_allocate (GtkWidget *widget,
static gint e_clipped_label_expose (GtkWidget *widget,
GdkEventExpose *event);
static void e_clipped_label_recalc_chars_displayed (EClippedLabel *label);
+static void e_clipped_label_destroy (GtkObject *object);
static GtkMiscClass *parent_class;
@@ -100,6 +101,8 @@ e_clipped_label_class_init (EClippedLabelClass *class)
widget_class->size_allocate = e_clipped_label_size_allocate;
widget_class->expose_event = e_clipped_label_expose;
+ object_class->destroy = e_clipped_label_destroy;
+
e_clipped_label_ellipsis = _("...");
}
@@ -248,6 +251,20 @@ e_clipped_label_expose (GtkWidget *widget,
}
+static void
+e_clipped_label_destroy (GtkObject *object)
+{
+ EClippedLabel *label;
+
+ g_return_if_fail (E_IS_CLIPPED_LABEL (object));
+
+ label = E_CLIPPED_LABEL(object);
+
+ g_free (label->label);
+ g_free (label->label_wc);
+}
+
+
/**
* e_clipped_label_get_text:
*