Do not leak in gstr::steal()

master
Yevgen Muntyan 2017-05-16 20:46:26 -07:00
parent cabd3e990e
commit b0dfab95e3
1 changed files with 1 additions and 1 deletions

View File

@ -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)