uv_type: make ~uv_type() destructor protected (#303)

This commit is contained in:
Alois Klink 2023-08-30 15:18:30 +01:00 committed by GitHub
parent 77b91ff98e
commit 8830320c60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,6 +71,9 @@ struct uv_type {
return &resource;
}
protected:
~uv_type() = default;
private:
std::shared_ptr<loop> owner;
U resource;