mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.72k stars 2.93k forks source link

input: fix memory leak with scalable input and nonscalable commands #15317

Closed na-na-hi closed 1 week ago

na-na-hi commented 1 week ago

With scalable input source, scale_units can be 0, and cmd is not freed. Fix this by freeing cmd when scale_units is 0.

Fixes: 937128697fbbef6b21e2d23a4785f1334f62b9e3

github-actions[bot] commented 1 week ago

Download the artifacts for this pull request:

Windows * [mpv-i686-w64-mingw32](https://nightly.link/mpv-player/mpv/actions/artifacts/2190532838.zip) * [mpv-x86_64-w64-mingw32](https://nightly.link/mpv-player/mpv/actions/artifacts/2190540605.zip) * [mpv-x86_64-windows-msvc](https://nightly.link/mpv-player/mpv/actions/artifacts/2190562958.zip)
macOS * [mpv-macos-13-intel](https://nightly.link/mpv-player/mpv/actions/artifacts/2190535718.zip) * [mpv-macos-14-arm](https://nightly.link/mpv-player/mpv/actions/artifacts/2190527978.zip) * [mpv-macos-15-arm](https://nightly.link/mpv-player/mpv/actions/artifacts/2190528357.zip)