Fix AI memory leaks #121

Manually merged
jabber.developer merged 4 commits from fix/ai-leaks into master 2026-05-15 14:21:40 +00:00
Showing only changes of commit 5e329c77e1 - Show all commits

View File

@@ -8516,7 +8516,8 @@ _cmd_execute_default(ProfWin* window, const char* inp)
case WIN_AI: case WIN_AI:
{ {
ProfAiWin* aiwin = (ProfAiWin*)window; ProfAiWin* aiwin = (ProfAiWin*)window;
cl_ev_send_ai_msg(aiwin, inp, connection_create_stanza_id()); auto_gchar gchar* stanza_id = connection_create_stanza_id();
cl_ev_send_ai_msg(aiwin, inp, stanza_id);
break; break;
} }
default: default: