summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Reveman <davidr@novell.com>2004-09-11 04:22:30 +0000
committerDavid Reveman <davidr@novell.com>2004-09-11 04:22:30 +0000
commit8ddc94602ef9fca0a42ed3c03723cee787db8c4d (patch)
tree37ba17bb18807f69043d9179027b4a57b8636c5c
parentd3ab77ad365c0b0100565facdbaa7a8e34f4b119 (diff)
Fixed memory leakSNAPSHOT_0_2_1
-rw-r--r--ChangeLog2
-rw-r--r--src/glitz_rect.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 80c5149..ebc9b78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2004-09-11 David Reveman <c99drn@cs.umu.se>
+ * src/glitz_rect.c (glitz_set_rectangles): Fixed memory leak.
+
* src/glitz.c (glitz_composite): Oh, I'm good at these, not the
first time I accidentally replaced x with y.
diff --git a/src/glitz_rect.c b/src/glitz_rect.c
index 46ed484..757b361 100644
--- a/src/glitz_rect.c
+++ b/src/glitz_rect.c
@@ -140,6 +140,8 @@ glitz_set_rectangles (glitz_surface_t *dst,
rects->x, rects->y,
rects->width, rects->height,
&pf, buffer);
+
+ glitz_buffer_destroy (buffer);
}
glitz_surface_pop_current (dst);