Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11019


Ignore:
Timestamp:
Jan 2, 2016, 9:08:12 PM (9 years ago)
Author:
landauf
Message:

(re-)added warning when a destroyable gets deleted without using destroy(). we had this warning in the code long time ago, but for some reason it was always commented out and at some point it got removed.

File:
1 edited

Legend:

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

    r10624 r11019  
    3434#include "Destroyable.h"
    3535#include "DestroyLaterManager.h"
     36#include "core/class/IdentifierManager.h"
    3637
    3738#include <cassert>
     
    5354    Destroyable::~Destroyable()
    5455    {
     56        if (!this->requestedDestruction_ && !IdentifierManager::getInstance().isCreatingHierarchy())
     57            orxout(internal_warning) << "Deleted destroyable object without destroy()" << endl;
     58
    5559        assert(this->referenceCount_ <= 0);
    5660
Note: See TracChangeset for help on using the changeset viewer.