[orbis-kernel] upload missed changes

This commit is contained in:
DH 2023-07-06 17:23:50 +03:00
parent 7bfa977086
commit 729b7d5e3f
4 changed files with 26 additions and 2 deletions

View file

@ -52,7 +52,9 @@ public:
template <typename OT>
requires(std::is_base_of_v<T, OT>)
Ref(OT *ref) : m_ref(ref) {
ref->incRef();
if (m_ref != nullptr) {
ref->incRef();
}
}
template <typename OT>