diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-12-20 19:27:33 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-01-02 09:53:21 +0000 |
commit | 19e8c5c7f4a561f2454380c8f4098a832d716d28 (patch) | |
tree | e5f79f3c95884586bfdc4a1bff737ae3a1f75a1b /test | |
parent | 6662eede2af2da50bff1902e694204c69e84f036 (diff) |
[test] Fix mismatched free.
A couple of strings allocated using glib functions but freed with system
malloc.
Reported: http://bugs.freedesktop.org/show_bug.cgi?id=19210.
Diffstat (limited to 'test')
-rw-r--r-- | test/pdf2png.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pdf2png.c b/test/pdf2png.c index 8471a186..fc4390b0 100644 --- a/test/pdf2png.c +++ b/test/pdf2png.c @@ -56,11 +56,11 @@ int main (int argc, char *argv[]) } else { gchar *dir = g_get_current_dir (); absolute = g_build_filename (dir, filename, (gchar *) 0); - free (dir); + g_free (dir); } uri = g_filename_to_uri (absolute, NULL, &error); - free (absolute); + g_free (absolute); if (uri == NULL) FAIL (error->message); |