mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 11:56:22 +00:00
Change char->free to auto_char char for autocleanup
Replace `gchar` and `g_free` to `auto_gchar` Correct certain `char` functions/variables to `gchar` Related to #1819. Edited by @jubalh.
This commit is contained in:
@@ -234,8 +234,6 @@ ui_contact_online(char* barejid, Resource* resource, GDateTime* last_activity)
|
||||
|
||||
// show nothing
|
||||
if (g_strcmp0(p_contact_subscription(contact), "none") == 0) {
|
||||
free(show_console);
|
||||
free(show_chat_win);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -697,9 +695,8 @@ ui_focus_win(ProfWin* window)
|
||||
}
|
||||
status_bar_current(i);
|
||||
|
||||
char* identifier = win_get_tab_identifier(window);
|
||||
auto_char char* identifier = win_get_tab_identifier(window);
|
||||
status_bar_active(i, window->type, identifier);
|
||||
free(identifier);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user