[Commit] Xr/src xrsurface.c,1.12,1.13

Carl Worth commit@keithp.com
Sat, 26 Apr 2003 10:00:31 -0700


Committed by: cworth

Update of /local/src/CVS/Xr/src
In directory home.keithp.com:/tmp/cvs-serv27541/src

Modified Files:
	xrsurface.c 
Log Message:
Fixed memory leak

Index: xrsurface.c
===================================================================
RCS file: /local/src/CVS/Xr/src/xrsurface.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- xrsurface.c	17 Apr 2003 20:24:29 -0000	1.12
+++ xrsurface.c	26 Apr 2003 17:00:29 -0000	1.13
@@ -259,6 +259,10 @@
     XcSurfaceDestroy (surface->xc_surface);
     surface->xc_surface = NULL;
 
+    if (surface->image_data)
+	free(surface->image_data);
+    surface->image_data = NULL;
+
     free(surface);
 }