mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1159273 - call g_type_init in nsAppShell::Init. r=glandium
This commit is contained in:
parent
425452c4a9
commit
282e131375
@ -73,6 +73,12 @@ nsAppShell::~nsAppShell()
|
||||
nsresult
|
||||
nsAppShell::Init()
|
||||
{
|
||||
// For any versions of Glib before 2.36, g_type_init must be explicitly called
|
||||
// to safely use the library. Failure to do so may cause various failures/crashes
|
||||
// in any code that uses Glib, Gdk, or Gtk. In later versions of Glib, this call
|
||||
// is a no-op.
|
||||
g_type_init();
|
||||
|
||||
if (!gWidgetLog)
|
||||
gWidgetLog = PR_NewLogModule("Widget");
|
||||
if (!gWidgetFocusLog)
|
||||
|
Loading…
Reference in New Issue
Block a user