Fix double free crash (#508224) Patch from Joe Marcus Clarke

2008-01-09  Alexander Larsson  <alexl@redhat.com>

        * fam/fam-helper.c:
        * fam/gfamdirectorymonitor.c:
        * fam/gfamfilemonitor.c:
	Fix double free crash (#508224)
	Patch from Joe Marcus Clarke


svn path=/trunk/; revision=6281
This commit is contained in:
Alexander Larsson
2008-01-09 08:08:43 +00:00
committed by Alexander Larsson
parent 9c95329347
commit 91d7fdc186
4 changed files with 9 additions and 5 deletions

View File

@@ -82,7 +82,7 @@ fam_do_iter_unlocked (void)
cancelled = sub->cancelled;
if (ev.code == FAMAcknowledge && cancelled)
{
g_free (sub);
_fam_sub_free (sub);
continue;
}