vlc | branch: master | Felix Paul Kühne <[email protected]> | Wed Sep 2 17:25:52 2015 +0200| [a1059708cd0c88aae08fa8dba19e75ee931f98db] | committer: Felix Paul Kühne
vout ios: add missing sanity check > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a1059708cd0c88aae08fa8dba19e75ee931f98db --- modules/video_output/ios2.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m index 8e3be0b..f58f5ce 100644 --- a/modules/video_output/ios2.m +++ b/modules/video_output/ios2.m @@ -370,9 +370,11 @@ void Close (vlc_object_t *this) [sys->glESView release]; - if (sys->picturePool) - picture_pool_Release(sys->picturePool); - sys->picturePool = NULL; + if (sys->zero_copy) { + if (sys->picturePool) + picture_pool_Release(sys->picturePool); + sys->picturePool = NULL; + } free(sys); } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
