lua: fix wp_lua_log_topic_copy() to copy the topic name correctly

Fixes: #757
This commit is contained in:
George Kiagiadakis 2025-01-08 11:34:59 +02:00
parent 4d02d0275f
commit a1bc3d9285

View file

@ -324,7 +324,7 @@ static WpLuaLogTopic *
wp_lua_log_topic_copy (WpLuaLogTopic *topic)
{
WpLuaLogTopic *copy = g_new0 (WpLuaLogTopic, 1);
copy->topic_name = g_ref_string_acquire ((char *) copy->topic_name);
copy->topic_name = g_ref_string_acquire ((char *) topic->topic_name);
wp_log_topic_register (copy);
return copy;
}