From 33d1f9a219083fb215e322e1519300ba5fcd8e1e Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 13 Sep 2007 14:54:15 +0000 Subject: Make GFileAttributeInfoList refcounted Original git commit by Alexander Larsson at 1188205283 +0200 svn path=/trunk/; revision=801 --- daemon/gvfsjobqueryattributes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'daemon/gvfsjobqueryattributes.c') diff --git a/daemon/gvfsjobqueryattributes.c b/daemon/gvfsjobqueryattributes.c index ae3b1d2c..5d62a1c8 100644 --- a/daemon/gvfsjobqueryattributes.c +++ b/daemon/gvfsjobqueryattributes.c @@ -30,7 +30,7 @@ g_vfs_job_query_attributes_finalize (GObject *object) g_free (job->filename); if (job->list) - g_file_attribute_info_list_free (job->list); + g_file_attribute_info_list_unref (job->list); if (G_OBJECT_CLASS (g_vfs_job_query_attributes_parent_class)->finalize) (*G_OBJECT_CLASS (g_vfs_job_query_attributes_parent_class)->finalize) (object); @@ -145,7 +145,7 @@ void g_vfs_job_query_attributes_set_list (GVfsJobQueryAttributes *job, GFileAttributeInfoList *list) { - job->list = g_file_attribute_info_list_dup (list); + job->list = g_file_attribute_info_list_ref (list); } /* Might be called on an i/o thread */ -- cgit v1.2.1