diff options
author | Mike Kestner <mkestner@gmail.com> | 2009-02-26 22:11:45 +0300 |
---|---|---|
committer | Mike Kestner <mkestner@gmail.com> | 2009-02-26 22:11:45 +0300 |
commit | 0bfa3cd0a5de0a8dbe38647aa7401794e3fae3a3 (patch) | |
tree | 4a7f7b9835c8e34d99c3f3d361fb1c0911b4d45f /main/src/addins/GnomePlatform | |
parent | f3ed2f4b10dda08bef98ac4d4cd6518fb2cdab31 (diff) |
2009-02-26 Mike Kestner <mkestner@novell.com>
* Gio.cs: remove an unref that can cause double frees, even
though the docs say the GFileInfo should be unref'd.
svn path=/trunk/monodevelop/; revision=128138
Diffstat (limited to 'main/src/addins/GnomePlatform')
-rw-r--r-- | main/src/addins/GnomePlatform/ChangeLog | 5 | ||||
-rw-r--r-- | main/src/addins/GnomePlatform/Gio.cs | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/main/src/addins/GnomePlatform/ChangeLog b/main/src/addins/GnomePlatform/ChangeLog index 8c3f6b2693..7dd86eaede 100644 --- a/main/src/addins/GnomePlatform/ChangeLog +++ b/main/src/addins/GnomePlatform/ChangeLog @@ -1,3 +1,8 @@ +2009-02-26 Mike Kestner <mkestner@novell.com> + + * Gio.cs: remove an unref that can cause double frees, even + though the docs say the GFileInfo should be unref'd. + 2009-02-08 Michael Hutchinson <mhutchinson@novell.com> * GnomePlatform.csproj: Remove more inadvertent local copying diff --git a/main/src/addins/GnomePlatform/Gio.cs b/main/src/addins/GnomePlatform/Gio.cs index 4356e74d81..db48994915 100644 --- a/main/src/addins/GnomePlatform/Gio.cs +++ b/main/src/addins/GnomePlatform/Gio.cs @@ -140,7 +140,6 @@ namespace MonoDevelop.Platform { IntPtr content_type = g_file_info_get_content_type (info); string mime_type = GLib.Marshaller.Utf8PtrToString (g_content_type_get_mime_type (content_type)); GLib.Marshaller.Free (content_type); - g_object_unref (info); g_object_unref (gfile); return mime_type; } |