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:
parent
445fe30046
commit
0eece4438f
3 changed files with 19 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -58,10 +58,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
|
||||
|
||||
if (disposing)
|
||||
Remove ();
|
||||
|
||||
Source.Remove (ID);
|
||||
else
|
||||
Source.Remove (ID);
|
||||
}
|
||||
|
||||
public bool Handler ()
|
||||
|
|
|
@ -55,10 +55,15 @@ 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 ();
|
||||
|
||||
Source.Remove (ID);
|
||||
else
|
||||
Source.Remove (ID);
|
||||
}
|
||||
|
||||
public bool Handler ()
|
||||
|
|
Loading…
Reference in a new issue