Re: [gtk-list] Re: how can I trust glib when it has so manymemleaks?
- From: Ionutz Borcoman <borco borco-ei eng hokudai ac jp>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: how can I trust glib when it has so manymemleaks?
- Date: Thu, 18 Mar 1999 12:58:08 +0000
Lars Hallberg wrote:
>
> On Thu, Mar 18, 1999 at 12:39:35PM +0000, Ionutz Borcoman wrote:
>
> > I think I made a typo here: I meant to say automatic objects. Like:
>
> That is *much* easyer ;-)
>
> class MemReporter
> {
> public:
> ~MemReporter() { g_mem_profile(); }
> };
>
> int main()
> {
> MemReporter mem_reporter;
> MyClass x;
>
> // Do some ;-)
> }
>
> And g_mem_profile will be called after the destruction of x. You
> migt as well make mem_reporter static of corse....
Yes, this seems to solve this problem. Still I do not know how to
interpret the results of g_mem_free :-(
Ionutz
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]