free the profile objects.
authorSøren Sandmann <sandmann@redhat.com>
Tue, 1 Nov 2005 02:37:09 +0000 (02:37 +0000)
committerSøren Sandmann Pedersen <ssp@src.gnome.org>
Tue, 1 Nov 2005 02:37:09 +0000 (02:37 +0000)
Mon Oct 31 21:36:37 2005  Søren Sandmann  <sandmann@redhat.com>

        * sysprof.c (fill_main_list): free the profile objects.

        * sysprof.c (struct Application): Remove unused variable.

ChangeLog
TODO
sysprof.c

index 8a16a19..6a8611c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Oct 31 21:36:37 2005  Søren Sandmann  <sandmann@redhat.com>
+
+       * sysprof.c (fill_main_list): free the profile objects.
+
+       * sysprof.c (struct Application): Remove unused variable.
+
 Mon Oct 31 00:22:58 2005  Soeren Sandmann  <sandmann@redhat.com>
 
        * sysprof.c (set_application_title): Use APPLICATION_NAME macro
diff --git a/TODO b/TODO
index 898b6f9..3b8b644 100644 (file)
--- a/TODO
+++ b/TODO
@@ -15,6 +15,8 @@ Before 1.0.1:
 
 Before 1.2:
 
+* Handle time being set back in the RESET_DEAD_PERIOD code.
+
 * Find out if the first sort order of a GtkTreeView column can be changed
   programmatically.
 
index 96ea730..8b915c3 100644 (file)
--- a/sysprof.c
+++ b/sysprof.c
@@ -74,7 +74,6 @@ struct Application
     ProfileCaller *    callers;
     
     int                        timeout_id;
-    int                        generating_profile;
 
     char *             loaded_profile;
     
@@ -442,6 +441,7 @@ fill_main_list (Application *app)
                                OBJECT_OBJECT, object->name,
                                -1);
        }
+       g_list_foreach (objects, (GFunc)g_free, NULL);
        g_list_free (objects);
        
        sort_state = save_sort_state (app->object_view);
@@ -1274,7 +1274,6 @@ build_gui (Application *app)
     gtk_widget_show_all (app->main_window);
     gtk_widget_hide (app->dummy_button);
     
-    /* Statusbar */
     queue_show_samples (app);
 
     return TRUE;