[Bug]CEGUIEvent

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

animaseed
Just popping in
Just popping in
Posts: 2
Joined: Wed Oct 10, 2012 10:23

[Bug]CEGUIEvent

Postby animaseed » Fri Oct 12, 2012 09:39

version: 0.7.7
file: CEGUIEvent.cpp

in Event::~Event(), code piece

Code: Select all

for (; iter!=end_iter; ++iter)
{
    iter->seceond->d_event = 0;
    iter->second->d_subscriber->cleanup();
}

should be removed, because the SubcriberSlot objects are wrapped in class RefCounted<BoundSlot>, after the code "d_slots.clear();" excuted, RefCounted<BoundSlot> object will be destroyed, then the clean work will be down. And if one BoundSlot object belongs to two RefCounted<BoundSlot> object, the code piece above will make trouble.

Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 4 guests