Fix bug: memory leak.

This commit is contained in:
Johns 2014-01-06 16:51:37 +01:00
parent a74a8e1c74
commit 8577292c50
2 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -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);