diff options
author | Martin Wehner <martin.wehner@gmail.com> | 2006-01-21 15:14:48 +0000 |
---|---|---|
committer | Martin Wehner <mwehner@src.gnome.org> | 2006-01-21 15:14:48 +0000 |
commit | 7cd8e772e666608ca14cbfeaa13b80042cbb04d4 (patch) | |
tree | e7f256975913401fa14ac004cb96ef2116ff31cb /src/nautilus-bookmark-list.c | |
parent | af0d3b588ca61a56ef51d07a258c7cd775d1c7fe (diff) | |
download | nautilus-7cd8e772e666608ca14cbfeaa13b80042cbb04d4.tar.gz |
Don't leak title.
2006-01-21 Martin Wehner <martin.wehner@gmail.com>
* src/nautilus-bookmark-list.c: (get_default_bookmark_name):
Don't leak title.
Diffstat (limited to 'src/nautilus-bookmark-list.c')
-rw-r--r-- | src/nautilus-bookmark-list.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nautilus-bookmark-list.c b/src/nautilus-bookmark-list.c index 6958a5535..6c3dc44be 100644 --- a/src/nautilus-bookmark-list.c +++ b/src/nautilus-bookmark-list.c @@ -76,11 +76,13 @@ static void bookmark_monitor_notify_cb (GnomeVFSMonitorHandle *handle, static char * get_default_bookmark_name (const char *text_uri) { - char *title; + char *title, *title_truncated; title = nautilus_compute_title_for_uri (text_uri); - title = eel_str_middle_truncate (title, MAX_BOOKMARK_LENGTH); - return title; + title_truncated = eel_str_middle_truncate (title, MAX_BOOKMARK_LENGTH); + g_free (title); + + return title_truncated; } |