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:
committed by
Jeffrey Stedfast
parent
09378977e5
commit
bef47a6364
@ -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.
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user