MT#59069 switch GString to g_auto

Change-Id: I22620e13868d31676420c93e562638bf476f1823
pull/1786/head
Richard Fuchs 2 years ago
parent 7de7c183c9
commit 8fe72ccec9

@ -111,7 +111,7 @@ static output_t *output_new(const char *path, const metafile_t *mf, const char *
gettimeofday(&now, NULL);
localtime_r(&now.tv_sec, &tm);
GString *f = g_string_new("");
g_autoptr(GString) f = g_string_new("");
for (const char *p = output_pattern; *p; p++) {
if (*p != '%') {
g_string_append_c(f, *p);
@ -186,8 +186,6 @@ done:;
create_parent_dirs(ret->full_filename);
ret->kind = kind;
g_string_free(f, TRUE);
return ret;
}

Loading…
Cancel
Save