aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-02-25 02:57:33 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-02-25 02:57:33 +0800
commitbef47a636432fe5791649412cf1a936b2c2b186b (patch)
treef3b2338326ce1632eb219e4001f2220dfed0cabb
parent09378977e5bcdb494701e6374d719f8836ef5ca4 (diff)
downloadgsoc2013-evolution-bef47a636432fe5791649412cf1a936b2c2b186b.tar
gsoc2013-evolution-bef47a636432fe5791649412cf1a936b2c2b186b.tar.gz
gsoc2013-evolution-bef47a636432fe5791649412cf1a936b2c2b186b.tar.bz2
gsoc2013-evolution-bef47a636432fe5791649412cf1a936b2c2b186b.tar.lz
gsoc2013-evolution-bef47a636432fe5791649412cf1a936b2c2b186b.tar.xz
gsoc2013-evolution-bef47a636432fe5791649412cf1a936b2c2b186b.tar.zst
gsoc2013-evolution-bef47a636432fe5791649412cf1a936b2c2b186b.zip
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
-rw-r--r--shell/ChangeLog4
-rw-r--r--shell/e-storage.c8
2 files changed, 9 insertions, 3 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 4204dd8fb8..4821c10976 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -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.
diff --git a/shell/e-storage.c b/shell/e-storage.c
index 7045ef47d5..e38c5e3fbf 100644
--- a/shell/e-storage.c
+++ b/shell/e-storage.c
@@ -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);
}
}
}