diff --git a/libs/pbd/pbd/destructible.h b/libs/pbd/pbd/destructible.h new file mode 100644 index 0000000000..126bd04bba --- /dev/null +++ b/libs/pbd/pbd/destructible.h @@ -0,0 +1,20 @@ +#ifndef __pbd_destructible_h__ +#define __pbd_destructible_h__ + +#include + +namespace PBD { + +class Destructible { + public: + Destructible() {} + virtual ~Destructible () {} + + sigc::signal GoingAway; + + void drop_references () const { GoingAway(); } +}; + +} + +#endif /* __pbd_destructible_h__ */