contexts: Fix memory leak in test

https://bugzilla.gnome.org/show_bug.cgi?id=711802
This commit is contained in:
Stef Walter 2013-11-08 14:28:23 +01:00
parent 438f7110f9
commit faafd4c051

View File

@ -2,7 +2,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
static const gchar *test_file; static gchar *test_file;
char *test_file_buffer; char *test_file_buffer;
gsize test_file_size; gsize test_file_size;
@ -199,6 +199,7 @@ main (int argc, char **argv)
ret = g_test_run(); ret = g_test_run();
g_free (test_file_buffer); g_free (test_file_buffer);
g_free (test_file);
return ret; return ret;
} }