Commit 04bf8a6b authored by Max Kellermann's avatar Max Kellermann

output/pipewire: fix memory leak in SendTag()

parent c4c64854
......@@ -666,7 +666,9 @@ PipeWireOutput::SendTag(const Tag &tag)
const char *artist, *title;
const char *medianame = FormatTag(tag, "%artist% - %title%");
char *medianame = FormatTag(tag, "%artist% - %title%");
AtScopeExit(medianame) { free(medianame); };
items[n_items++] = SPA_DICT_ITEM_INIT(PW_KEY_MEDIA_NAME, medianame);
artist = tag.GetValue(TAG_ARTIST);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment