2006-03-11 Soren Sandmann <sandmann@redhat.com>

	* TODO: updates

	* stackstash.[ch]: Make stackstash refcounted

	* collector.c, profile.c: Update for refcounted stackstash, plug
	leak.

	* collector.c (open_fd): Remove FIXME comment
This commit is contained in:
Soren Sandmann
2006-03-12 04:00:23 +00:00
committed by Søren Sandmann Pedersen
parent 849efc820d
commit 9859854cc1
6 changed files with 56 additions and 18 deletions

View File

@ -228,7 +228,7 @@ profile_new (StackStash *stash)
{
Profile *profile = g_new (Profile, 1);
profile->stash = stash;
profile->stash = stack_stash_ref (stash);
return profile;
}
@ -456,7 +456,7 @@ profile_list_callers (Profile *profile,
void
profile_free (Profile *profile)
{
/* FIXME unref stash */
stack_stash_unref (profile->stash);
g_free (profile);
}