Permalink
Browse files

Fix crash when path points to a file, not a directory. ( http://sourc…

  • Loading branch information...
geekless committed Mar 23, 2012
1 parent fd9c0f4 commit 1df133e0e2a2eae2e4b3851ca936544445053128
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/job/fm-dir-list-job.c
@@ -229,7 +229,7 @@ static gboolean fm_dir_list_job_run_posix(FmDirListJob* job)
if(! fm_file_info_is_dir(fi))
{
err = g_error_new(G_IO_ERROR, G_IO_ERROR_NOT_DIRECTORY, _("The specified directory is not valid"));
- fm_file_info_unref(fi);
+ //fm_file_info_unref(fi);
fm_job_emit_error(FM_JOB(job), err, FM_JOB_ERROR_CRITICAL);
g_error_free(err);
return FALSE;

0 comments on commit 1df133e

Please sign in to comment.