app: free the string returned by gimp_dock_window_get_description()

This commit is contained in:
Michael Natterer 2010-06-22 23:05:06 +02:00
parent 94e757df51
commit 865a1f4896
1 changed files with 5 additions and 2 deletions

View File

@ -736,8 +736,11 @@ gimp_dock_window_update_title_idle (GimpDockWindow *dock_window)
{ {
gchar *desc = gimp_dock_window_get_description (dock_window, gchar *desc = gimp_dock_window_get_description (dock_window,
FALSE /*complete*/); FALSE /*complete*/);
if (desc != NULL) if (desc)
gtk_window_set_title (GTK_WINDOW (dock_window), desc); {
gtk_window_set_title (GTK_WINDOW (dock_window), desc);
g_free (desc);
}
dock_window->p->update_title_idle_id = 0; dock_window->p->update_title_idle_id = 0;