Tag: use new[]/delete[] instead of g_new()/g_free()

This commit is contained in:
Max Kellermann
2013-12-03 11:16:25 +01:00
parent 8a5209ad93
commit 4ab586aaf1
2 changed files with 4 additions and 11 deletions

View File

@@ -125,7 +125,7 @@ TagBuilder::Commit(Tag &tag)
object */
const unsigned n_items = items.size();
tag.num_items = n_items;
tag.items = g_new(TagItem *, n_items);
tag.items = new TagItem *[n_items];
std::copy_n(items.begin(), n_items, tag.items);
items.clear();