diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2016-09-02 10:39:30 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2016-09-02 10:39:30 +1200 |
commit | 3c94d516ffe12716c3cacf07cb83fceeb5e65805 (patch) | |
tree | c78ccce840ef863cd755ed53a99fe19f646d44ed | |
parent | da84ce2474b253b6a27716f7a97b714b0d9bc4bb (diff) | |
download | lightdm-git-3c94d516ffe12716c3cacf07cb83fceeb5e65805.tar.gz |
Add missing finalize for LightDMLayout
-rw-r--r-- | liblightdm-gobject/layout.c | 11 |
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, |