13
0

Allow to overload drop_references()

This is useful in cases where an object owns child objects
which in turn hold a reference to the parent.

In this case PluginInsert has-a Plugin, which may have a reference
to the insert or the Route.
This commit is contained in:
Robin Gareus 2020-08-05 22:16:33 +02:00
parent bfccf7ba18
commit c2618903ae
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -32,7 +32,7 @@ class LIBPBD_API Destructible {
PBD::Signal0<void> Destroyed;
PBD::Signal0<void> DropReferences;
void drop_references () { DropReferences(); }
virtual void drop_references () { DropReferences(); }
};
}