mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 22:19:14 +08:00
highgui(gtk): fix initialization order of global objects
This commit is contained in:
parent
f4abafb093
commit
80238880e6
@ -2331,6 +2331,11 @@ public:
|
||||
class GTKBackendUI : public UIBackend
|
||||
{
|
||||
public:
|
||||
GTKBackendUI()
|
||||
{
|
||||
// NB: avoid static initialization order fiasco
|
||||
(void)getGTKWindows();
|
||||
}
|
||||
~GTKBackendUI() CV_OVERRIDE
|
||||
{
|
||||
destroyAllWindows();
|
||||
|
Loading…
Reference in New Issue
Block a user