highgui(gtk): fix initialization order of global objects

pull/20250/head
Alexander Alekhin 4 years ago
parent f4abafb093
commit 80238880e6
  1. 5
      modules/highgui/src/window_gtk.cpp

@ -2331,6 +2331,11 @@ public:
class GTKBackendUI : public UIBackend
{
public:
GTKBackendUI()
{
// NB: avoid static initialization order fiasco
(void)getGTKWindows();
}
~GTKBackendUI() CV_OVERRIDE
{
destroyAllWindows();

Loading…
Cancel
Save