[dialog-file-access] plug a char* leak

This commit is contained in:
Christopher Lam 2023-03-16 23:18:47 +08:00
parent f6d013847d
commit ef0c9deb7f

View File

@ -84,7 +84,10 @@ geturl( FileAccessWindow* faw )
{
path = gtk_file_chooser_get_filename (faw->fileChooser);
if ( !path ) /* file protocol was chosen but no filename was set */
{
g_free (type);
return NULL;
}
}
else /* db protocol was chosen */
{