Use APPLICATION_NAME macro

Mon Oct 31 00:22:58 2005  Soeren Sandmann  <sandmann@redhat.com>

	* sysprof.c (set_application_title): Use APPLICATION_NAME macro

	* sysprof.c (load_file): Don't leak the FileOpenData

	* TODO: updates
This commit is contained in:
Soeren Sandmann
2005-10-31 05:20:37 +00:00
committed by Søren Sandmann Pedersen
parent c34a9b862f
commit ec8798a8b1
3 changed files with 13 additions and 4 deletions

View File

@ -271,7 +271,7 @@ set_application_title (Application *app,
else
{
gtk_window_set_title (GTK_WINDOW (app->main_window),
"System Collector");
APPLICATION_NAME);
}
}
@ -1331,6 +1331,8 @@ load_file (gpointer data)
g_error_free (err);
}
g_free (file_open_data);
return FALSE;
}
@ -1351,7 +1353,6 @@ main (int argc, char **argv)
if (argc > 1)
{
FileOpenData *file_open_data = g_new0 (FileOpenData, 1);
file_open_data->filename = argv[1];
file_open_data->app = app;