Add a destroy notifier to StackStash

2006-07-31  Soren Sandmann <sandmann@redhat.com>

	* stackstash.[ch]: Add a destroy notifier to StackStash

	* collector.c (collector_create_profile): Pass g_free as destroy
	notifier.

	* collector.c (collector_reset): Pass NULL as destroy notifier

	* profile.c (profile_load): Pass g_free here.

	* profile.c (struct Profile): Remove unused "Node" typedef

	* collector.c (resolve_symbols): Free the array here.

	* TODO: various updates.
This commit is contained in:
Soren Sandmann
2006-07-31 04:50:34 +00:00
committed by Søren Sandmann Pedersen
parent 5efd06051c
commit d43cdf3c14
8 changed files with 92 additions and 21 deletions

View File

@ -1558,6 +1558,14 @@ main (int argc,
gtk_init (&argc, &argv);
#if 0
/* FIXME: enable this when compiled against the relevant glib
* version. (The reason we want to enable it is that gslice
* caches too much memory and also confuses valgrind).
*/
g_slice_set_config (G_SLICE_CONFIG_ALWAYS_MALLOC, TRUE);
#endif
app = application_new ();
if (!build_gui (app))