unref the destination's attribute matcher before overwriting it.

2009-02-17  Ryan Lortie  <desrt@desrt.ca>

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


svn path=/trunk/; revision=7879
This commit is contained in:
Ryan Lortie 2009-02-17 23:36:13 +00:00 committed by Ryan Lortie
parent 6438f1689c
commit 3fd881b5bb
2 changed files with 8 additions and 0 deletions

View 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 ===

View 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