2009-09-22 Brad Taylor <brad@getcoded.net>

* glib/Idle.cs: 
	* glib/Timeout.cs: Don't try to remove the handler from the managed
	hashtable twice, add a comment explaining the need for the else branch.


svn path=/trunk/gtk-sharp/; revision=142364
This commit is contained in:
Brad Taylor 2009-09-22 02:52:41 +00:00
parent 445fe30046
commit 0eece4438f
3 changed files with 19 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2009-09-22 Brad Taylor <brad@getcoded.net>
* glib/Idle.cs:
* glib/Timeout.cs: Don't try to remove the handler from the managed
hashtable twice, add a comment explaining the need for the else branch.
2009-09-22 Brad Taylor <brad@getcoded.net>
* glib/Idle.cs:

View File

@ -58,9 +58,13 @@ namespace GLib {
protected virtual void Dispose (bool disposing)
{
// Both branches remove our delegate from the
// managed list of handlers, but only
// Source.Remove will remove it from the
if (disposing)
Remove ();
else
Source.Remove (ID);
}

View File

@ -55,9 +55,14 @@ namespace GLib {
protected virtual void Dispose (bool disposing)
{
// Both branches remove our delegate from the
// managed list of handlers, but only
// Source.Remove will remove it from the
// unmanaged list also.
if (disposing)
Remove ();
else
Source.Remove (ID);
}