if (!full_path)
{
+ g_free (name);
g_free (domain);
return NULL;
}
}
}
+static void
+lightdm_session_finalize (GObject *object)
+{
+ LightDMSession *self = LIGHTDM_SESSION (object);
+ LightDMSessionPrivate *priv = GET_PRIVATE (self);
+
+ g_free (priv->key);
+ g_free (priv->name);
+ g_free (priv->comment);
+}
+
static void
lightdm_session_class_init (LightDMSessionClass *klass)
{
object_class->set_property = lightdm_session_set_property;
object_class->get_property = lightdm_session_get_property;
+ object_class->finalize = lightdm_session_finalize;
g_object_class_install_property (object_class,
PROP_KEY,
gchar *path;
//gboolean have_dmrc;
- priv->dmrc_file = g_key_file_new ();
+ if (!priv->dmrc_file)
+ priv->dmrc_file = g_key_file_new ();
/* Load from the user directory */
path = g_build_filename (priv->home_directory, ".dmrc", NULL);