mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 02:58:02 +02:00
[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.
This commit is contained in:
parent
6662eede2a
commit
19e8c5c7f4
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue