Skip to content

Commit b04cf12

Browse files
committed
MT#61856 media_player: use str_free() for cached file keys
`media_player_media_files_insert()` stores keys allocated with `str_dup()`, but during the eviction, the key is freed with `g_free()`. Use `str_free()` instead. Change-Id: I17a8498f7cf850a3cc2015130d1aa689f3f7c553
1 parent b8a0dd5 commit b04cf12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

daemon/media_player.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2495,7 +2495,7 @@ static bool __media_player_evict_file(str *name) {
24952495
}
24962496

24972497
obj_put(val);
2498-
g_free(key);
2498+
str_free(key);
24992499

25002500
return true;
25012501
}

0 commit comments

Comments
 (0)