From 5afedb10925969c9992c805188b46af92cd618dd Mon Sep 17 00:00:00 2001 From: Palana Date: Wed, 25 Jun 2014 16:54:07 +0200 Subject: [PATCH] Fix DStr move constructor Previously dstr_move would try to free the uninitialized value in DStr::str::array --- libobs/util/dstr.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/util/dstr.hpp b/libobs/util/dstr.hpp index e1fb088d7..60a6e02ed 100644 --- a/libobs/util/dstr.hpp +++ b/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); } -- GitLab