Commit f07613bb authored by Michael Chudobiak's avatar Michael Chudobiak Committed by Matthias Clasen
Browse files

Fix a small leak in GtkFileSelector

parent 7b2bda7c
......@@ -3005,14 +3005,16 @@ open_new_dir (gchar *dir_name,
if (!sys_dir_name)
{
cmpl_errno = CMPL_ERRNO_DID_NOT_CONVERT;
g_free (sent);
return NULL;
}
directory = g_dir_open (sys_dir_name, 0, &error);
if (!directory)
{
cmpl_errno = error->code; /* ??? */
g_free (sys_dir_name);
g_free (sent);
return NULL;
}
......
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