2007-06-12 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-window-title.c: (ev_window_title_update):
Fix memory leak.
svn path=/trunk/; revision=2496
+2007-06-12 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * shell/ev-window-title.c: (ev_window_title_update):
+
+ Fix memory leak.
+
2007-06-09 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-view.c: (draw_loading_text):
if (title && window_title->uri) {
ev_window_title_sanitize_extension (window_title, &title);
- } else {
- if (window_title->uri) {
- title = get_filename_from_uri (window_title->uri);
- } else {
- title = g_strdup (_("Document Viewer"));
- }
+ } else if (window_title->uri) {
+ title = get_filename_from_uri (window_title->uri);
+ } else if (!title) {
+ title = g_strdup (_("Document Viewer"));
}
for (p = title; *p; ++p) {