浏览代码

Fix DStr move constructor

Previously dstr_move would try to free the uninitialized value in
DStr::str::array
Palana 11 年之前
父节点
当前提交
5afedb1092
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
 	}