mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-27 05:56:21 +00:00
refactor: replace malloc with g_new0 in many occasions
This commit is contained in:
@@ -1404,7 +1404,7 @@ prefs_get_room_notify_triggers(void)
|
||||
ProfWinPlacement*
|
||||
prefs_create_profwin_placement(int titlebar, int mainwin, int statusbar, int inputwin)
|
||||
{
|
||||
ProfWinPlacement* placement = malloc(sizeof(ProfWinPlacement));
|
||||
ProfWinPlacement* placement = g_new0(ProfWinPlacement, 1);
|
||||
placement->titlebar_pos = titlebar;
|
||||
placement->mainwin_pos = mainwin;
|
||||
placement->statusbar_pos = statusbar;
|
||||
|
||||
Reference in New Issue
Block a user