提交 29e61cc6 编写于 作者: P Palana

Fix OBSRef move assignment not releasing the previous reference

上级 ce782b44
......@@ -49,6 +49,7 @@ public:
inline OBSRef &operator=(OBSRef &&ref)
{
if (this != &ref) {
release(val);
val = ref.val;
ref.val = nullptr;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册