GNOME Bugzilla – Bug 769200
Annotation windows are not destroyed when we remove
Last modified: 2016-09-09 13:55:14 UTC
the annotation
Created attachment 332168 [details] [review] libview: Do not create annotation window twice. Currently, in button_release_event we always create the annotation window. Since there is a chance that draw event will show the annotation windows (and in that case creates annotation windows if they don't exist) then the annotation window will be created twice. This causes a leak because we only destroy one of these windows... and also when removing annotations with the window open we don't destroy the window (we destroy a window which is already hidden). The solution here is to check in button_release wether a window has been already created for the annotation, and only if not, create the new annotation window.
Comment on attachment 332168 [details] [review] libview: Do not create annotation window twice. Please, push it. Thanks!
Attachment 332168 [details] pushed as 932b22b - libview: Do not create annotation window twice.