[Glade-users] Possible memory leak with accelerator groups?
- From: damon helixcode com (Damon Chaplin)
- Subject: [Glade-users] Possible memory leak with accelerator groups?
- Date: Wed, 04 Oct 2000 01:02:58 +0100
Norman Black wrote:
I noticed from Glade code generation that if you choose to have a window
destroyed that the window accel group seems to be leaked.
The code generation goes like
create accel group = ref count 1
add accelerators = inc ref count
add accel group to window = inc ref count
when the window destroys, and child widgets with accelerators, the accel
group still has a ref count of 1 after everyone decrements their ref count.
I think the accel group should have its ref count decremented after it is
added to the window. Then the accel group will be deallocated when the
window is destroyed.
Yes, I need to look over this. (I also need to check over the tooltips
objects as well.)
Thanks for the report.
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]