Issze #1711 - GIMP does not unref all GLocalFileEnumerator it uses

unref the enumerator when done. Spotted by Massimo.

(cherry picked from commit ca3ffec111)
This commit is contained in:
Michael Natterer
2018-06-24 14:14:07 +02:00
parent be3abe6cea
commit eb57f0d0b3

View File

@ -457,12 +457,15 @@ gimp_font_factory_recursive_add_fontdir (FcConfig *config,
}
}
}
g_free (path);
}
g_object_unref (child);
g_object_unref (info);
}
g_object_unref (enumerator);
}
else
{
@ -485,6 +488,7 @@ gimp_font_factory_recursive_add_fontdir (FcConfig *config,
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
"- %s%s", path, G_DIR_SEPARATOR_S);
}
g_free (path);
}
}