]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Clean up a stale foreign handle in winnps.c.
authorSimon Tatham <anakin@pobox.com>
Tue, 7 Apr 2015 20:54:41 +0000 (21:54 +0100)
committerSimon Tatham <anakin@pobox.com>
Sat, 20 Jun 2015 08:31:54 +0000 (09:31 +0100)
commit02893bcba062ad3a39c41a6a98d4647f417d2b13
tree31983d72c268999b94eb845d1ede2f0dee9dfd48
parentb58a34115ac47f264c7cb684d3b66228cadce40e
Clean up a stale foreign handle in winnps.c.

I had set up an event object for signalling incoming connections to
the named pipe, and then called handle_add_foreign_event to get that
event object watched for connections - but when I closed down the
listening pipe, I deleted the event object without also cancelling
that foreign-event handle, so that winhandl.c would potentially call
the callback for a destroyed object.

(cherry picked from commit 6f241cef2c9770abf71349dd59547b3e5b4c0301)
windows/winnps.c