filebrowser: Unref the enumerator in the filebrowser plugin

8bb1b9555f
This commit is contained in:
JosephMcc 2017-02-13 14:27:43 -08:00
parent 4c45b083e1
commit 372399891d
1 changed files with 2 additions and 0 deletions

View File

@ -2471,6 +2471,7 @@ model_iterate_next_files_cb (GFileEnumerator *enumerator,
if (files == NULL) if (files == NULL)
{ {
g_file_enumerator_close (enumerator, NULL, NULL); g_file_enumerator_close (enumerator, NULL, NULL);
g_object_unref (enumerator);
async_node_free (async); async_node_free (async);
if (!error) if (!error)
@ -2522,6 +2523,7 @@ model_iterate_next_files_cb (GFileEnumerator *enumerator,
{ {
/* Check cancel state manually */ /* Check cancel state manually */
g_file_enumerator_close (enumerator, NULL, NULL); g_file_enumerator_close (enumerator, NULL, NULL);
g_object_unref (enumerator);
async_node_free (async); async_node_free (async);
} }
else else