Commit 523073f8 authored by Pavel Vasin's avatar Pavel Vasin Committed by Cosimo Cecchi

file-utilities: fix leaked path string

https://bugzilla.gnome.org/show_bug.cgi?id=682603
parent c092d25e
......@@ -748,13 +748,25 @@ nautilus_find_existing_uri_in_hierarchy (GFile *location)
return location;
}
static gboolean
have_program_in_path (const char *name)
{
gchar *path;
gboolean result;
path = g_find_program_in_path (name);
result = (path != NULL);
g_free (path);
return result;
}
gboolean
nautilus_is_file_roller_installed (void)
{
static int installed = - 1;
if (installed < 0) {
if (g_find_program_in_path ("file-roller")) {
if (have_program_in_path ("file-roller")) {
installed = 1;
} else {
installed = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment