[MPlayer-cvslog] r29793 - trunk/libvo/vo_vdpau.c

cehoyos subversion at mplayerhq.hu
Thu Oct 22 20:44:39 CEST 2009


Author: cehoyos
Date: Thu Oct 22 20:44:39 2009
New Revision: 29793

Log:
Free memory allocated in ff_vdpau_add_data_chunk() on uninit.

Modified:
   trunk/libvo/vo_vdpau.c

Modified: trunk/libvo/vo_vdpau.c
==============================================================================
--- trunk/libvo/vo_vdpau.c	Thu Oct 22 17:40:04 2009	(r29792)
+++ trunk/libvo/vo_vdpau.c	Thu Oct 22 20:44:39 2009	(r29793)
@@ -1111,10 +1111,18 @@ static void DestroyVdpauObjects(void)
 
 static void uninit(void)
 {
+    int i;
+
     if (!vo_config_count)
         return;
     visible_buf = 0;
 
+    for (i = 0; i < MAX_VIDEO_SURFACES; i++) {
+        // Allocated in ff_vdpau_add_data_chunk()
+        av_freep(&surface_render[i].bitstream_buffers);
+        surface_render[i].bitstream_buffers_allocated = 0;
+    }
+
     /* Destroy all vdpau objects */
     DestroyVdpauObjects();
 


More information about the MPlayer-cvslog mailing list