common: Add additional memory utilities (xzalloc() etc.)

This commit is contained in:
John Lindgren 2022-09-16 18:41:02 -04:00
parent b89f7bfc0d
commit cb40cdc36c
35 changed files with 193 additions and 167 deletions

View file

@ -7,6 +7,7 @@
#include "ssd.h"
#include "theme.h"
#include "common/font.h"
#include "common/mem.h"
#include "common/scaled_font_buffer.h"
#include "common/scene-helpers.h"
#include "node.h"
@ -271,7 +272,7 @@ ssd_update_title(struct view *view)
if (state->text) {
free(state->text);
}
state->text = strdup(title);
state->text = xstrdup(title);
}
ssd_update_title_positions(view);
}