mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
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…
Reference in a new issue