Browse Source

Fix OBSRef move assignment not releasing the previous reference

Palana 11 years ago
parent
commit
29e61cc68e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libobs/obs.hpp

+ 1 - 0
libobs/obs.hpp

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