[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [aspell-devel] Memory leaks
From: |
Gary Setter |
Subject: |
Re: [aspell-devel] Memory leaks |
Date: |
Sun, 31 Oct 2004 20:29:07 -0600 |
----- Original Message -----
From: "Kevin Atkinson" <address@hidden>
To: "Gary Setter" <address@hidden>
Cc: <address@hidden>
Sent: Saturday, October 30, 2004 8:02 PM
Subject: Re: [aspell-devel] Memory leaks
> On Sat, 30 Oct 2004, Gary Setter wrote:
>
> > Most of the memory leaks are gone. But these remain.
> > > dump master
>
> I don't see any when I use that command.
>
Hi Kevin,
This is good. I had a leak, found it and I don't know why you
didn't have one. It centers on how your global cache works.
This is my new dump master code, note the new like with todays
date.
} else if (action == do_dump) {
EXIT_ON_ERR_SET(add_data_set(config->retrieve("master-path"),
*config), Dict *, d);
StackPtr<Convert> conv(setup_conv(d->lang(), config));
dump(d, conv);
d->release(); //31-Oct-04
}
What you may have intended, was to keep the Dict (aka Dictionary)
object in the global cache and let the destructor of the cache
delete it it. But your ~GlobalCacheBase does not release/delete
anything. How come you are not getting a memory leak?
Best regards,
Gary