Don't free a const pointer.

2001-02-24  Jeffrey Stedfast  <fejj@ximian.com>

	* e-storage.c (folder_changed_cb): Don't free a const pointer.

svn path=/trunk/; revision=8380
This commit is contained in:
Jeffrey Stedfast
2001-02-24 18:57:33 +00:00
committed by Jeffrey Stedfast
parent 09378977e5
commit bef47a6364
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2001-02-24 Jeffrey Stedfast <fejj@ximian.com>
* e-storage.c (folder_changed_cb): Don't free a const pointer.
2001-02-23 Iain Holmes <iain@ximian.com>
* e-local-storage.c (construct): Connect to the create-folder signal.

View File

@ -112,11 +112,13 @@ folder_changed_cb (EFolder *folder,
GINT_TO_POINTER (highlight));
p = strrchr (path, '/');
if (p && p != path) {
path = g_strndup (path, p - path);
folder = e_folder_tree_get_folder (priv->folder_tree, path);
char *name;
name = g_strndup (path, p - path);
folder = e_folder_tree_get_folder (priv->folder_tree, name);
g_free (name);
if (folder)
e_folder_set_child_highlight (folder, highlight);
g_free (path);
}
}
}