All:
I have an issue with FusionSound leaking memory in my application. In
actuality, the leak is more than likely due to me incorrectly using
the API so I am posting this question with the hope that someone can
point out my mistake.
In my application, I put the following loop...
... Initialize FusionSound, declare necessary variables, etc
fgProvider = NULL;
while (1)
{
if (fgProvider) fgProvider->Release(fgProvider);
sound->CreateMusicProvider(sound, fg.file, &fgProvider);
}
When executed, I can watch (via top) the available system memory drop
to 0 then my application segfaults. I thought all I had to do was
call Release on the provider, but I must be mistaken.
Note: the above code was an oversimplification to test that it was the
provider create/release that caused my application to leak memory over
the course of 24 hours, I just did this to expedite the results.
Any help would be greatly appreciated. Thank you.
--
Rich Rattanni
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users