Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 4, 2014, 5:29:18 PM (11 years ago)
Author:
landauf
Message:

details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/object/ObjectListBase.cc

    r9667 r9975  
    6464
    6565    /**
    66         @brief Destructor: Deletes all list-elements, but NOT THE OBJECTS.
     66        @brief Destructor: Detaches all list-elements, but doesn't delete them (nor the objects).
    6767    */
    6868    ObjectListBase::~ObjectListBase()
     
    7979            current = next;
    8080        }
     81
     82        if (!this->listeners_.empty())
     83            orxout(internal_error) << "Deleting ObjectListBase but it still has " << this->listeners_.size() << " listeners. This will lead to a crash. "
     84                                   << "Ensure that all Iterators are destroyed before deleting object lists." << endl;
    8185    }
    8286
Note: See TracChangeset for help on using the changeset viewer.