diff options
Diffstat (limited to 'src/indicator-datetime.c')
-rw-r--r-- | src/indicator-datetime.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c index 1dbd6ce..3e16e07 100644 --- a/src/indicator-datetime.c +++ b/src/indicator-datetime.c @@ -76,12 +76,26 @@ indicator_datetime_init (IndicatorDatetime *self) { self->priv = INDICATOR_DATETIME_GET_PRIVATE(self); + self->priv->label = NULL; + self->priv->timer = 0; + return; } static void indicator_datetime_dispose (GObject *object) { + IndicatorDatetime * self = INDICATOR_DATETIME(object); + + if (self->priv->label != NULL) { + g_object_unref(self->priv->label); + self->priv->label = NULL; + } + + if (self->priv->timer != 0) { + g_source_remove(self->priv->timer); + self->priv->timer = 0; + } G_OBJECT_CLASS (indicator_datetime_parent_class)->dispose (object); return; |