g_assert (!res);
g_assert_error (error, G_FILE_ERROR, G_FILE_ERROR_NOENT);
g_assert_null (path);
+ g_error_free (error);
g_bookmark_file_free (bookmark);
}
#define S G_DIR_SEPARATOR_S
static void
-check_string (gchar *str, gchar *expected)
+check_string (gchar *str, const gchar *expected)
{
g_assert (str != NULL);
g_assert_cmpstr (str, ==, expected);
path = g_file_read_link (oldpath, &error);
g_assert_error (error, G_FILE_ERROR, G_FILE_ERROR_INVAL);
g_assert_null (path);
+ g_error_free (error);
g_free (cwd);
g_free (newpath);
{ NULL }
};
GOptionContext* context;
- gchar **argv;
+ gchar **argv, **argv_copy;
gint argc;
g_test_bug ("729563");
argv = split_string ("program -ri -n 4 -t hello file1 file2", &argc);
+ argv_copy = copy_stringv (argv, argc);
context = g_option_context_new (NULL);
g_assert_cmpstr (files[1], ==, "file2");
g_assert (files[2] == NULL);
- g_strfreev (argv);
+ g_free (text);
+ g_strfreev (files);
+ g_strfreev (argv_copy);
+ g_free (argv);
g_option_context_free (context);
}