Commit 404dd5e1 authored by W. Michael Petullo's avatar W. Michael Petullo
Browse files

More work to properly free DMAPConnection objects

Signed-off-by: W. Michael Petullo's avatarW. Michael Petullo <>
parent 82ec10d2
......@@ -138,12 +138,6 @@ dmap_connection_finalize (GObject *object)
g_return_if_fail (connection->priv != NULL);
g_free (connection->priv->name);
g_free (connection->priv->host);
g_object_unref (connection->priv->db);
g_object_unref (connection->priv->record_factory);
g_debug ("Finalize");
G_OBJECT_CLASS (dmap_connection_parent_class)->finalize (object);
......@@ -1678,6 +1672,11 @@ dmap_connection_dispose (GObject *object)
priv->db = NULL;
if (priv->record_factory) {
g_object_unref (G_OBJECT (priv->record_factory));
priv->record_factory = NULL;
if (priv->last_error_message != NULL) {
g_free (priv->last_error_message);
priv->last_error_message = NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment