[poppler] test: ChangeLog, 1.8, 1.9 test-poppler.c, 1.2,
1.3 buffer-diff.c, 1.1.1.1, 1.2
Jeff Muizelaar
jrmuizel at freedesktop.org
Fri Dec 9 20:15:51 PST 2005
Update of /cvs/poppler/test
In directory gabe:/tmp/cvs-serv19542
Modified Files:
ChangeLog test-poppler.c buffer-diff.c
Log Message:
2005-12-09 Jeff Muizelaar <jeff at infidigm.net>
* buffer-diff.c: (image_diff):
* test-poppler.c: (poppler_test_page):
Plug two memory leaks.
Index: ChangeLog
===================================================================
RCS file: /cvs/poppler/test/ChangeLog,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- ChangeLog 23 Nov 2005 21:26:11 -0000 1.8
+++ ChangeLog 10 Dec 2005 04:15:49 -0000 1.9
@@ -1,3 +1,9 @@
+2005-12-09 Jeff Muizelaar <jeff at infidigm.net>
+
+ * buffer-diff.c: (image_diff):
+ * test-poppler.c: (poppler_test_page):
+ Plug two memory leaks.
+
2005-11-23 Jeff Muizelaar <jeff at infidigm.net>
* test-gen/image.pl:
Index: test-poppler.c
===================================================================
RCS file: /cvs/poppler/test/test-poppler.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- test-poppler.c 23 Nov 2005 00:38:06 -0000 1.2
+++ test-poppler.c 10 Dec 2005 04:15:49 -0000 1.3
@@ -54,6 +54,7 @@
if (error != NULL)
FAIL (error->message);
g_object_unref (G_OBJECT (page));
+ g_object_unref (G_OBJECT (pixbuf));
pixels_changed = image_diff (png_name, ref_name, diff_name);
Index: buffer-diff.c
===================================================================
RCS file: /cvs/poppler/test/buffer-diff.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- buffer-diff.c 21 May 2005 02:09:40 -0000 1.1.1.1
+++ buffer-diff.c 10 Dec 2005 04:15:49 -0000 1.2
@@ -110,8 +110,10 @@
return -1;
status = read_png_argb32 (filename_b, &buf_b, &width_b, &height_b, &stride_b);
- if (status)
+ if (status) {
+ free (buf_a);
return -1;
+ }
if (width_a != width_b ||
height_a != height_b ||
More information about the poppler
mailing list