summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2014-01-06 16:51:37 +0100
committerJohns <johns98@gmx.net>2014-01-06 16:51:37 +0100
commit8577292c50dc6541794898185d52cb9cf8563224 (patch)
tree136740e6f467749a2f2b178ff39c48b430655d5e /video.c
parenta74a8e1c7470ab69eec666d13344ebb6f5cfc308 (diff)
downloadvdr-plugin-softhddevice-8577292c50dc6541794898185d52cb9cf8563224.tar.gz
vdr-plugin-softhddevice-8577292c50dc6541794898185d52cb9cf8563224.tar.bz2
Fix bug: memory leak.
Diffstat (limited to 'video.c')
-rw-r--r--video.c4
1 files changed, 2 insertions, 2 deletions
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);