[vlc-devel] commit: dummy vout: check for sys->pool before deleting it. (Ramiro Polla )
git version control
git at videolan.org
Sat Jan 23 16:00:00 CET 2010
vlc | branch: master | Ramiro Polla <ramiro.polla at gmail.com> | Mon Jan 18 16:09:53 2010 -0200| [16f75b88a72dd3aed04175ebd79cc8a113dccc2f] | committer: Rémi Denis-Courmont
dummy vout: check for sys->pool before deleting it.
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=16f75b88a72dd3aed04175ebd79cc8a113dccc2f
---
modules/misc/dummy/vout.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/misc/dummy/vout.c b/modules/misc/dummy/vout.c
index e85e22f..02c4922 100644
--- a/modules/misc/dummy/vout.c
+++ b/modules/misc/dummy/vout.c
@@ -91,7 +91,8 @@ void CloseVideo(vlc_object_t *object)
vout_display_t *vd = (vout_display_t *)object;
vout_display_sys_t *sys = vd->sys;
- picture_pool_Delete(sys->pool);
+ if (sys->pool)
+ picture_pool_Delete(sys->pool);
free(sys);
}
More information about the vlc-devel
mailing list