summaryrefslogtreecommitdiff
path: root/devices
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2006-07-03 16:02:35 +0000
committerAkira TAGOH <akira@tagoh.org>2006-07-03 16:02:35 +0000
commit30bb8bfdf3d7b63af0494e3e35f7fc2c19e5a116 (patch)
tree9a041b22eae6744cc446ac40f5ad9abfa9384e89 /devices
parent35d66ed753a4982189938bf002c60f03e84b3a71 (diff)
2006-07-04 Akira TAGOH <at@gclab.org>
* devices/cairo/cairo-xlib-main.c (device_close): fixed a memory leak.
Diffstat (limited to 'devices')
-rw-r--r--devices/cairo/cairo-xlib-main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/devices/cairo/cairo-xlib-main.c b/devices/cairo/cairo-xlib-main.c
index a272d38..29dfe5a 100644
--- a/devices/cairo/cairo-xlib-main.c
+++ b/devices/cairo/cairo-xlib-main.c
@@ -109,4 +109,6 @@ device_close(HgDevice *device)
cairo_surface_destroy(cdev->surface);
XDestroyWindow(cdev->u.xlib.dpy, cdev->u.xlib.drawable);
XCloseDisplay(cdev->u.xlib.dpy);
+
+ g_free(device);
}