From 5adc8bdbb1471821f912becbba86e4631a4a001a Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Wed, 3 Jan 2007 01:19:25 +0000 Subject: Cleanups. Implement DEBUG() macro. --- hardinfo2/shell.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'hardinfo2/shell.c') diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index b05366be..d1faf8f5 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -1058,10 +1058,8 @@ static void module_selected(GtkTreeSelection * ts, gpointer data) shell_status_update("Done."); shell_status_set_enabled(FALSE); - gchar *tmp = - g_strdup_printf("%s - System Information", entry->name); - gtk_window_set_title(GTK_WINDOW(shell->window), tmp); - g_free(tmp); + gtk_window_set_title(GTK_WINDOW(shell->window), + idle_free(g_strdup_printf("%s - System Information", entry->name))); shell_action_set_enabled("RefreshAction", TRUE); shell_action_set_enabled("CopyAction", TRUE); -- cgit v1.2.3