mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
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:
committed by
Alexander Larsson
parent
9c95329347
commit
91d7fdc186
@@ -1,3 +1,11 @@
|
||||
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
|
||||
|
||||
008-01-07 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* === Released 2.15.1 ===
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -50,7 +50,6 @@ g_fam_directory_monitor_finalize (GObject *object)
|
||||
if (!_fam_sub_cancel (sub))
|
||||
g_warning ("Unexpected error cancelling fam monitor");
|
||||
|
||||
_fam_sub_free (sub);
|
||||
fam_monitor->sub = NULL;
|
||||
}
|
||||
|
||||
@@ -134,7 +133,6 @@ g_fam_directory_monitor_cancel (GFileMonitor* monitor)
|
||||
if (!_fam_sub_cancel (sub))
|
||||
g_warning ("Unexpected error cancelling fam monitor");
|
||||
|
||||
_fam_sub_free (sub);
|
||||
fam_monitor->sub = NULL;
|
||||
}
|
||||
|
||||
|
@@ -49,7 +49,6 @@ g_fam_file_monitor_finalize (GObject *object)
|
||||
if (sub) {
|
||||
if (!_fam_sub_cancel (sub))
|
||||
g_warning ("Unexpected error cancelling fam monitor");
|
||||
_fam_sub_free (sub);
|
||||
fam_monitor->sub = NULL;
|
||||
}
|
||||
|
||||
@@ -132,7 +131,6 @@ g_fam_file_monitor_cancel (GFileMonitor* monitor)
|
||||
if (sub) {
|
||||
if (!_fam_sub_cancel (sub))
|
||||
g_warning ("Unexpected error cancelling fam monitor");
|
||||
_fam_sub_free (sub);
|
||||
fam_monitor->sub = NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user