mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
tests: Fix a free function in the GIO tests
The monitor_path comes from g_file_get_path(), so should be freed with g_free() rather than free(). This makes no difference because they are the same function in practice, but using free() is a bit confusing. Signed-off-by: Philip Withnall <withnall@endlessm.com> Reviewed-by: nobody
This commit is contained in:
parent
9365e212f8
commit
8056b753e5
@ -510,7 +510,7 @@ test_create_delete (gconstpointer d)
|
||||
skip:
|
||||
g_object_unref (data->monitor);
|
||||
g_object_unref (data->file);
|
||||
free (data->monitor_path);
|
||||
g_free (data->monitor_path);
|
||||
g_free (data->buffer);
|
||||
g_free (data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user