Implement YaComponentPluginImpl destructor

When the object gets dropped through the reference counting system, the
object should also be dropped in the Wine plugin host.
This commit is contained in:
Robbert van der Helm
2020-12-11 22:59:32 +01:00
parent cdb9dae2df
commit 699ddfd2ea
7 changed files with 51 additions and 6 deletions
+2 -1
View File
@@ -68,7 +68,8 @@ struct WantsPluginFactory {
* encodes the information we request or the operation we want to perform. A
* request of type `ControlRequest(T)` should send back a `T::Response`.
*/
using ControlRequest = std::variant<YaComponent::Create, WantsPluginFactory>;
using ControlRequest =
std::variant<YaComponent::Create, YaComponent::Destroy, WantsPluginFactory>;
template <typename S>
void serialize(S& s, ControlRequest& payload) {