output/pipewire: fix memory leak in SendTag()
This commit is contained in:
parent
c4c64854d4
commit
04bf8a6b1a
@ -666,7 +666,9 @@ PipeWireOutput::SendTag(const Tag &tag)
|
|||||||
|
|
||||||
const char *artist, *title;
|
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);
|
items[n_items++] = SPA_DICT_ITEM_INIT(PW_KEY_MEDIA_NAME, medianame);
|
||||||
|
|
||||||
artist = tag.GetValue(TAG_ARTIST);
|
artist = tag.GetValue(TAG_ARTIST);
|
||||||
|
Loading…
Reference in New Issue
Block a user