From a5a1668a269cb142a7d250e97b4141207f15f5eb Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 17 Jul 2004 20:22:42 +0000 Subject: embarrassing memory leak when shm is not available CVS patchset: 6803 CVS date: 2004/07/17 20:22:42 --- src/video_out/video_out_xv.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c index bc6541dac..639e0131d 100644 --- a/src/video_out/video_out_xv.c +++ b/src/video_out/video_out_xv.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out_xv.c,v 1.202 2004/06/27 11:16:20 mroi Exp $ + * $Id: video_out_xv.c,v 1.203 2004/07/17 20:22:42 miguelfreitas Exp $ * * video_out_xv.c, X11 video extension interface for xine * @@ -185,6 +185,7 @@ static void xv_frame_dispose (vo_frame_t *vo_img) { } else { XLockDisplay (this->display); + free (frame->image->data); XFree (frame->image); XUnlockDisplay (this->display); } @@ -388,9 +389,11 @@ static void dispose_ximage (xv_driver_t *this, } } - else + else { + free (myimage->data); + XFree (myimage); - + } } static void xv_update_frame_format (vo_driver_t *this_gen, -- cgit v1.2.3