Commit 7cd8e772 authored by Martin Wehner's avatar Martin Wehner Committed by Martin Wehner

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.
parent af0d3b58
2006-01-21 Martin Wehner <martin.wehner@gmail.com>
* src/nautilus-bookmark-list.c: (get_default_bookmark_name):
Don't leak title.
2006-01-21 Martin Wehner <martin.wehner@gmail.com>
* libnautilus-private/nautilus-desktop-directory-file.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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment