Browse Source

Fix DStr move constructor

Previously dstr_move would try to free the uninitialized value in
DStr::str::array
Palana 11 years ago
parent
commit
5afedb1092
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libobs/util/dstr.hpp

+ 1 - 1
libobs/util/dstr.hpp

@@ -26,7 +26,7 @@ class DStr {
 
 public:
 	inline DStr() {dstr_init(&str);}
-	inline DStr(DStr &&other)
+	inline DStr(DStr &&other) : DStr()
 	{
 		dstr_move(&str, &other.str);
 	}