Fix a small leak in GtkFileSelector
This commit is contained in:

committed by
Matthias Clasen

parent
7b2bda7c84
commit
f07613bb12
@ -3005,6 +3005,7 @@ open_new_dir (gchar *dir_name,
|
|||||||
if (!sys_dir_name)
|
if (!sys_dir_name)
|
||||||
{
|
{
|
||||||
cmpl_errno = CMPL_ERRNO_DID_NOT_CONVERT;
|
cmpl_errno = CMPL_ERRNO_DID_NOT_CONVERT;
|
||||||
|
g_free (sent);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3013,6 +3014,7 @@ open_new_dir (gchar *dir_name,
|
|||||||
{
|
{
|
||||||
cmpl_errno = error->code; /* ??? */
|
cmpl_errno = error->code; /* ??? */
|
||||||
g_free (sys_dir_name);
|
g_free (sys_dir_name);
|
||||||
|
g_free (sent);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user