Fix OBSRef move assignment not releasing the previous reference
This commit is contained in:
parent
ce782b44b7
commit
29e61cc68e
@ -49,6 +49,7 @@ public:
|
||||
inline OBSRef &operator=(OBSRef &&ref)
|
||||
{
|
||||
if (this != &ref) {
|
||||
release(val);
|
||||
val = ref.val;
|
||||
ref.val = nullptr;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user