mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Free strings in all cases in cmd_rooms
Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
parent
98676613fd
commit
3ce27b47ad
@ -4593,6 +4593,8 @@ cmd_rooms(ProfWin *window, const char *const command, gchar **args)
|
|||||||
} else {
|
} else {
|
||||||
cons_bad_cmd_usage(command);
|
cons_bad_cmd_usage(command);
|
||||||
cons_show("");
|
cons_show("");
|
||||||
|
g_free(service);
|
||||||
|
g_free(filter);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4620,6 +4622,7 @@ cmd_rooms(ProfWin *window, const char *const command, gchar **args)
|
|||||||
iq_room_list_request(service, filter);
|
iq_room_list_request(service, filter);
|
||||||
|
|
||||||
g_free(service);
|
g_free(service);
|
||||||
|
g_free(filter);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user