Fix OBSRef move assignment not releasing the previous reference

This commit is contained in:
Palana 2014-10-29 16:17:07 +01:00
parent ce782b44b7
commit 29e61cc68e

View file

@ -49,6 +49,7 @@ public:
inline OBSRef &operator=(OBSRef &&ref)
{
if (this != &ref) {
release(val);
val = ref.val;
ref.val = nullptr;
}