mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 10:17:31 +00:00
stream_file: avoid redundant free
s->priv->cancel will be freed when s is freed, so freeing it explicitly is not required. Signed-off-by: Aman Gupta <aman@tmm1.net>
This commit is contained in:
parent
44f8dccfb6
commit
877ae46125
@ -161,7 +161,6 @@ static void s_close(stream_t *s)
|
||||
struct priv *p = s->priv;
|
||||
if (p->close)
|
||||
close(p->fd);
|
||||
talloc_free(p->cancel);
|
||||
}
|
||||
|
||||
// If url is a file:// URL, return the local filename, otherwise return NULL.
|
||||
|
Loading…
Reference in New Issue
Block a user