Take a reference on the gio file monitors while signaling pending file changes
authorRobert Bragg <robert@linux.intel.com>
Wed, 6 May 2009 08:20:43 +0000 (09:20 +0100)
committerAlexander Larsson <alexl@redhat.com>
Wed, 20 May 2009 12:23:53 +0000 (14:23 +0200)
commitd0d10e847f3ea347d651714050a8bafd5332e2cb
treefbb7725b7ebadbd1a30f1fa7c6e6f0b125319819
parent6a9df8256aaccd717aaa7582c704093d727699fe
Take a reference on the gio file monitors while signaling pending file changes

It was possible for a signal handler to remove the last reference and
dispose the monitor.  If there were remaining pending_file_changes they
tried to dereference the disposed monitor.

This patch simply calls g_object_{ref,unref} around the loop that signals
the changes.
gio/gfilemonitor.c