diff options
-rw-r--r-- | src/Xv.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -194,6 +194,7 @@ XvQueryAdaptors( size = rep.length << 2; if ((buffer = Xmalloc(size)) == NULL) { + _XEatDataWords(dpy, rep.length); UnlockDisplay(dpy); SyncHandle(); return (XvBadAlloc); @@ -351,6 +352,7 @@ XvQueryEncodings( size = rep.length << 2; if ((buffer = Xmalloc(size)) == NULL) { + _XEatDataWords(dpy, rep.length); UnlockDisplay(dpy); SyncHandle(); return (XvBadAlloc); |