summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2016-09-02 10:39:30 +1200
committerRobert Ancell <robert.ancell@canonical.com>2016-09-02 10:39:30 +1200
commit3c94d516ffe12716c3cacf07cb83fceeb5e65805 (patch)
treec78ccce840ef863cd755ed53a99fe19f646d44ed
parentda84ce2474b253b6a27716f7a97b714b0d9bc4bb (diff)
downloadlightdm-git-3c94d516ffe12716c3cacf07cb83fceeb5e65805.tar.gz
Add missing finalize for LightDMLayout
-rw-r--r--liblightdm-gobject/layout.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/liblightdm-gobject/layout.c b/liblightdm-gobject/layout.c
index f22b6297..13c974f3 100644
--- a/liblightdm-gobject/layout.c
+++ b/liblightdm-gobject/layout.c
@@ -303,12 +303,23 @@ lightdm_layout_get_property (GObject *object,
}
static void
+lightdm_layout_finalize (GObject *object)
+{
+ LightDMLayout *self = LIGHTDM_LAYOUT (object);
+
+ g_free (self->name);
+ g_free (self->short_description);
+ g_free (self->description);
+}
+
+static void
lightdm_layout_class_init (LightDMLayoutClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->set_property = lightdm_layout_set_property;
object_class->get_property = lightdm_layout_get_property;
+ object_class->finalize = lightdm_layout_finalize;
g_object_class_install_property (object_class,
PROP_NAME,