comparison 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
comparison
equal deleted inserted replaced
428:1338c24e30cb 429:c1666427297c
393 } 393 }
394 394
395 *p_nEncodings = rep.num_encodings; 395 *p_nEncodings = rep.num_encodings;
396 *p_pEncodings = pes; 396 *p_pEncodings = pes;
397 397
398 Xfree(buffer);
398 UnlockDisplay(dpy); 399 UnlockDisplay(dpy);
399 SyncHandle(); 400 SyncHandle();
400 401
401 return (Success); 402 return (Success);
402 } 403 }
976 } else 977 } else
977 _XEatData(dpy, rep.length << 2); 978 _XEatData(dpy, rep.length << 2);
978 979
979 UnlockDisplay(dpy); 980 UnlockDisplay(dpy);
980 SyncHandle(); 981 SyncHandle();
981
982 return ret; 982 return ret;
983 } 983 }
984 984
985 SDL_NAME(XvImage) * SDL_NAME(XvShmCreateImage) ( 985 SDL_NAME(XvImage) * SDL_NAME(XvShmCreateImage) (
986 Display *dpy, 986 Display *dpy,