diff options
author | wm4 <wm4@nowhere> | 2014-09-29 20:37:12 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-29 20:37:12 +0200 |
commit | c2592be4f0ee8ffa77e23295b167397554f5c418 (patch) | |
tree | f5a99a82ebbcda03d9104a2f7e2eb72edcea4198 /video/decode/dec_video.c | |
parent | 053196de84ea785bde70c3b544742a654191e258 (diff) | |
download | mpv-c2592be4f0ee8ffa77e23295b167397554f5c418.tar.bz2 mpv-c2592be4f0ee8ffa77e23295b167397554f5c418.tar.xz |
vd_lavc: fix a small memory leak on init error
The private context wasn't free'd when codec init failed. Restructure
the code so that it can't happen.
Diffstat (limited to 'video/decode/dec_video.c')
-rw-r--r-- | video/decode/dec_video.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/video/decode/dec_video.c b/video/decode/dec_video.c index b7002800fb..eb7baf838d 100644 --- a/video/decode/dec_video.c +++ b/video/decode/dec_video.c @@ -122,7 +122,6 @@ void video_uninit(struct dec_video *d_video) MP_VERBOSE(d_video, "Uninit video.\n"); d_video->vd_driver->uninit(d_video); } - talloc_free(d_video->priv); vf_destroy(d_video->vfilter); talloc_free(d_video); } |