gio/tests: fix leaks

https://bugzilla.gnome.org/show_bug.cgi?id=682560
This commit is contained in:
Dan Winship
2012-08-24 20:43:54 -04:00
parent 17bb9d542c
commit beb0f9c150
11 changed files with 94 additions and 16 deletions

View File

@@ -122,8 +122,11 @@ monitor_changed (GFileMonitor *monitor,
gpointer user_data)
{
CreateDeleteData *data = user_data;
gchar *path;
g_assert_cmpstr (data->monitor_path, ==, g_file_get_path (file));
path = g_file_get_path (file);
g_assert_cmpstr (data->monitor_path, ==, path);
g_free (path);
if (event_type == G_FILE_MONITOR_EVENT_CREATED)
data->monitor_created++;