diff options
author | Colomban Wendling <ban@herbesfolles.org> | 2016-05-11 23:00:37 +0200 |
---|---|---|
committer | Colomban Wendling <ban@herbesfolles.org> | 2016-05-11 23:00:37 +0200 |
commit | 3f7b52da84cf6a8168c555bddbe1e8919cee1334 (patch) | |
tree | dbf5a98311dfd4d011241e15fa84191e4ede60ea /test/gi/gi-test.py | |
parent | 9b3c2f67fb36e4d29f375475c35ed1489edb925d (diff) | |
download | scintilla-mirror-3f7b52da84cf6a8168c555bddbe1e8919cee1334.tar.gz |
Bug [#1827]. GTK: Avoid possible IdleWork() calls on destructed objects
The idle callback removal clause in the ScintillaGTK destructor got
broken in 4e5c321dda8e69104cb7b639c3107dc11dbc00f6, leading to the
callback not being removed thus possibly running after the instance
destruction.
Indeed, gdk_threads_add_idle() wraps g_idle_add() with a custom user
data, thus making the g_source_remove_by_user_data() call in the
destructor incorrect, as we give it our own user data, not GDK's
wrapper one.
Fix the callback removal not to use user data matching to avoid this.
Diffstat (limited to 'test/gi/gi-test.py')
0 files changed, 0 insertions, 0 deletions