unref the destination's attribute matcher before overwriting it.
authorRyan Lortie <desrt@desrt.ca>
Tue, 17 Feb 2009 23:36:13 +0000 (23:36 +0000)
committerRyan Lortie <ryanl@src.gnome.org>
Tue, 17 Feb 2009 23:36:13 +0000 (23:36 +0000)
2009-02-17  Ryan Lortie  <desrt@desrt.ca>

        * gfileinfo.c: unref the destination's attribute matcher before
        overwriting it.

svn path=/trunk/; revision=7879

gio/ChangeLog
gio/gfileinfo.c

index 554cce0..9725a7b 100644 (file)
@@ -1,3 +1,8 @@
+2009-02-17  Ryan Lortie  <desrt@desrt.ca>
+
+       * gfileinfo.c: unref the destination's attribute matcher before
+       overwriting it.
+
 2009-02-17  Matthias Clasen  <mclasen@redhat.com>
 
        * === Released 2.19.8 ===
index b772fee..e4968d1 100644 (file)
@@ -302,6 +302,9 @@ g_file_info_copy_into (GFileInfo *src_info,
       _g_file_attribute_value_set (&dest[i].value, &source[i].value);
     }
 
+  if (dest_info->mask != NO_ATTRIBUTE_MASK)
+    g_file_attribute_matcher_unref (dest_info->mask);
+
   if (src_info->mask == NO_ATTRIBUTE_MASK)
     dest_info->mask = NO_ATTRIBUTE_MASK;
   else