summaryrefslogtreecommitdiff
path: root/src/video_out/video_out_xshm.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2002-03-01 09:29:49 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2002-03-01 09:29:49 +0000
commit99a4dbf75cc3f7a40354b6c6596f4ea7aa373c52 (patch)
tree806a86599b236768bb1742f16d88053d5418d931 /src/video_out/video_out_xshm.c
parentfa19bf6548378144d233d9cd3b898b98c97f3748 (diff)
downloadxine-lib-99a4dbf75cc3f7a40354b6c6596f4ea7aa373c52.tar.gz
xine-lib-99a4dbf75cc3f7a40354b6c6596f4ea7aa373c52.tar.bz2
memleak fixes from ewald snel
CVS patchset: 1535 CVS date: 2002/03/01 09:29:49
Diffstat (limited to 'src/video_out/video_out_xshm.c')
-rw-r--r--src/video_out/video_out_xshm.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_out/video_out_xshm.c b/src/video_out/video_out_xshm.c
index 3f220ce3e..529b220fd 100644
--- a/src/video_out/video_out_xshm.c
+++ b/src/video_out/video_out_xshm.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_xshm.c,v 1.64 2002/02/25 01:23:41 guenter Exp $
+ * $Id: video_out_xshm.c,v 1.65 2002/03/01 09:29:50 guenter Exp $
*
* video_out_xshm.c, X11 shared memory extension interface for xine
*
@@ -1138,8 +1138,12 @@ static int xshm_gui_data_exchange (vo_driver_t *this_gen,
static void xshm_exit (vo_driver_t *this_gen) {
- /* xshm_driver_t *this = (xshm_driver_t *) this_gen; */
+ xshm_driver_t *this = (xshm_driver_t *) this_gen;
+
+ if (this->cur_frame)
+ this->cur_frame->vo_frame.dispose (&this->cur_frame->vo_frame);
+ free (this);
}