diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp index a53b37571..6474c87bb 100644 --- a/opengl/libs/EGL/egl.cpp +++ b/opengl/libs/EGL/egl.cpp @@ -120,7 +120,7 @@ struct egl_display_t { SortedVector objects; - egl_display_t() : magic('_dpy'), numTotalConfigs(0), configs(0) { } + egl_display_t() : magic('_dpy'), numTotalConfigs(0), configs(0), refs(0) { } ~egl_display_t() { magic = 0; } inline bool isReady() const { return (refs > 0); } inline bool isValid() const { return magic == '_dpy'; }