Commit e2384824 authored by Romain Bignon's avatar Romain Bignon

fix memory leak

parent 82e62a28
......@@ -2,3 +2,5 @@ build.minbif
doc/html
*.so
*.pyc
Session.vim
tests/config.py
......@@ -64,7 +64,12 @@ string ChatBuddy::getRealName() const
PurplePluginProtocolInfo* prpl = conv.getAccount().getProtocol().getPurpleProtocol();
if(prpl->get_cb_real_name)
return prpl->get_cb_real_name(conv.getAccount().getPurpleConnection(), conv.getPurpleChat()->id, cbuddy->name);
{
gchar* tmp = prpl->get_cb_real_name(conv.getAccount().getPurpleConnection(), conv.getPurpleChat()->id, cbuddy->name);
string realname = tmp;
g_free(tmp);
return realname;
}
else
return getName();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment