diff --git a/moo/moocpp/gstr.cpp b/moo/moocpp/gstr.cpp index ece3c43a..0ac02a91 100644 --- a/moo/moocpp/gstr.cpp +++ b/moo/moocpp/gstr.cpp @@ -64,7 +64,7 @@ const char* gstr::get() const void gstr::steal(char* s) { g_free(m_p); - m_p = s ? g_strdup(s) : nullptr; + m_p = s; } gstr gstr::take(char* src)