Code

gidle: added internal "destroyed" flag
authorMax Kellermann <max@duempel.org>
Fri, 16 Oct 2009 13:06:58 +0000 (15:06 +0200)
committerMax Kellermann <max@duempel.org>
Fri, 16 Oct 2009 13:06:58 +0000 (15:06 +0200)
commit2158ae519ddd706a93187686324cf05cbdca4bd2
tree025a5cc528033a243b1ae06c46ee733bdd775685
parentb14c2234a61e38fd55d5dbb685f49323a5f02c9f
gidle: added internal "destroyed" flag

If mpd_glib_leave() invokes the callback, and the callback destroys
the mpd_glib_source object, mpd_glib_leave() is unable to reset the
"leaving" flag.  This patch adds the flag "destroyed" which lets
mpd_glib_leave() do the g_free() when it's ready.
src/gidle.c
src/gidle.h