gvfs r2186 - in trunk: . common
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r2186 - in trunk: . common
- Date: Thu, 29 Jan 2009 12:29:19 +0000 (UTC)
Author: alexl
Date: Thu Jan 29 12:29:18 2009
New Revision: 2186
URL: http://svn.gnome.org/viewvc/gvfs?rev=2186&view=rev
Log:
2009-01-29 Alexander Larsson <alexl redhat com>
* common/gvfsicon.c:
(g_vfs_icon_to_tokens):
Dup string to avoid double free later.
Modified:
trunk/ChangeLog
trunk/common/gvfsicon.c
Modified: trunk/common/gvfsicon.c
==============================================================================
--- trunk/common/gvfsicon.c (original)
+++ trunk/common/gvfsicon.c Thu Jan 29 12:29:18 2009
@@ -226,7 +226,7 @@
s = g_mount_spec_to_string (vfs_icon->mount_spec);
g_ptr_array_add (tokens, s);
- g_ptr_array_add (tokens, vfs_icon->icon_id);
+ g_ptr_array_add (tokens, g_strdup (vfs_icon->icon_id));
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]