aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-task-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-task-bar.c')
-rw-r--r--widgets/misc/e-task-bar.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/widgets/misc/e-task-bar.c b/widgets/misc/e-task-bar.c
index c05c7d8999..9093f89d58 100644
--- a/widgets/misc/e-task-bar.c
+++ b/widgets/misc/e-task-bar.c
@@ -82,9 +82,15 @@ reduce_displayed_activities_per_component (ETaskBar *task_bar)
}
#endif
+
+static void impl_finalize (GObject *object);
+
static void
e_task_bar_class_init (ETaskBarClass *klass)
{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ object_class->finalize = impl_finalize;
}
static void
@@ -114,6 +120,20 @@ e_task_bar_init (ETaskBar *task_bar)
gtk_widget_set_size_request (GTK_WIDGET (task_bar), -1, height * 2);
}
+static void
+impl_finalize (GObject *object)
+{
+ ETaskBar *task_bar;
+ ETaskBarPrivate *priv;
+
+ task_bar = E_TASK_BAR (object);
+ priv = task_bar->priv;
+
+ g_free (priv);
+
+ (* G_OBJECT_CLASS (e_task_bar_parent_class)->finalize) (object);
+}
+
void
e_task_bar_construct (ETaskBar *task_bar)