]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Work around a timer leak with GTK 2.4.22 on openSUSE 13.1.
authorSimon Tatham <anakin@pobox.com>
Tue, 8 Jul 2014 22:22:12 +0000 (22:22 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 8 Jul 2014 22:22:12 +0000 (22:22 +0000)
commit4647eded7cdc590d80327291ebe7996049de3850
treeb6164993e417509883127ef568b4e81cb72d165e
parent7f17b44b0e855563377f8ec138d750440dab4bb0
Work around a timer leak with GTK 2.4.22 on openSUSE 13.1.

Mihkel Ader reports that on that system, timers apparently aren't
getting auto-destroyed when timer_trigger returns FALSE, so the change
in r10181 has caused GTK PuTTY to gradually allocate more and more
timers and consume more and more CPU as they all keep firing.

As far as I can see, this must surely be a bug in GTK 2 (the docs say
that timers _are_ auto-destroyed when their callback returns false),
and it doesn't seem to happen for me with GTK 2.4.23 on Ubuntu 14.04.
However, I'll try to work around it by _explicitly_ destroying each
old timer before we zero out the variable containing its id.

[originally from svn r10202]
[r10181 == e4c4bd20920e11458ab0ec0cd17c69b8bf7f6d00]
unix/gtkwin.c