diff src/video/Xext/Xv/Xv.c @ 429:c1666427297c

Memory leak fixes by Bill May.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 30 Jul 2002 07:25:43 +0000
parents 8c4999b0ac10
children 045f186426e1
line wrap: on
line diff
--- a/src/video/Xext/Xv/Xv.c	Mon Jul 29 23:20:16 2002 +0000
+++ b/src/video/Xext/Xv/Xv.c	Tue Jul 30 07:25:43 2002 +0000
@@ -395,6 +395,7 @@
   *p_nEncodings = rep.num_encodings;
   *p_pEncodings = pes;
 
+  Xfree(buffer);
   UnlockDisplay(dpy);
   SyncHandle();
 
@@ -978,7 +979,6 @@
 
    UnlockDisplay(dpy);
    SyncHandle();
-
    return ret;
 }