From 8577292c50dc6541794898185d52cb9cf8563224 Mon Sep 17 00:00:00 2001 From: Johns Date: Mon, 6 Jan 2014 16:51:37 +0100 Subject: Fix bug: memory leak. --- ChangeLog | 1 + video.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7c95d09..388859e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ User johns Date: + Fix bug: memory leak. PIP close clears the last used PIP channel. Fix bug: -DOSD_DEBUG uses old (deleted) variable. Fix bug: Option softhddevice.BlackPicture has no effect. diff --git a/video.c b/video.c index 91e74b4..1aa52a1 100644 --- a/video.c +++ b/video.c @@ -912,13 +912,13 @@ static void GlxOsdClear(void) // FIXME: if not; use zero buffer // FIXME: if not; use dirty area - texbuf = calloc(OsdWidth * OsdHeight, 4); - // set glx context if (!glXMakeCurrent(XlibDisplay, VideoWindow, GlxContext)) { Error(_("video/glx: can't make glx context current\n")); return; } + + texbuf = calloc(OsdWidth * OsdHeight, 4); GlxUploadOsdTexture(0, 0, OsdWidth, OsdHeight, texbuf); glXMakeCurrent(XlibDisplay, None, NULL); -- cgit v1.2.3