[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [paragui-dev] shutdown deletes objects twice
From: |
Alexander Pipelka |
Subject: |
Re: [paragui-dev] shutdown deletes objects twice |
Date: |
Sun, 12 Jun 2005 18:21:54 +0200 |
Am Samstag, den 11.06.2005, 23:18 +0200 schrieb Martin Bickel:
> While this patch seems to fix the above mentioned bug, the double
> deletion for the DropList still exists. I'm wondering why valgrind
> didn't find it on your system...
I see there is still a chance triggering the bug, obviously the
'dropdown' sample didn't do it.
> >> What do you think of the following solution:
> >>
> >> Adding a signal "sigDelete" to PG_Widget which is called by the
> >> destructor of PG_Widget.
> >> The DropDown-Menu could then hook that signal of its DropList and set
> >> the my_DropList variable to NULL if it is fired.
> >Hopefully not needed anymore.
>
> I've implemented this solution. Here comes the patch (which also adds a
> small piece of documentation to pgscrollbar). The dropdown test now
> runs flawlessly, so I recommend applying both patches.
Right. I think the new signal will help to solve future problems.
Alex