[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-dev] crash bug in paragui
From: |
Tim Oertel |
Subject: |
[paragui-dev] crash bug in paragui |
Date: |
Tue, 11 Nov 2003 22:09:55 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030826 |
The destructor in PG_ListBoxBaseItem should check that the
GetParent() doesn't return null, before doing the rest...
This is present in Paragui 1.0.4
PG_ListBoxBaseItem::~PG_ListBoxBaseItem() {
if(GetParent()->GetSelectedItem() == this) {
GetParent()->SelectItem(NULL);
GetParent()->RemoveWidget(this, true, true);
}
}
The "if" should read:
if((GetParent()) && (GetParent()->GetSelectedItem() == this)) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-dev] crash bug in paragui,
Tim Oertel <=