mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
common: Add additional memory utilities (xzalloc() etc.)
This commit is contained in:
parent
b89f7bfc0d
commit
cb40cdc36c
35 changed files with 193 additions and 167 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue