mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
updates
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:
committed by
Søren Sandmann Pedersen
parent
849efc820d
commit
9859854cc1
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user