Comment 63 for bug 162993

Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

Move the "if (!gTriedToLoadLibGnomeUI)" code to its own static helper function, say "EnsureLibGnomeLoaded()". Put all the PR_FindFunctionSymbol calls together and then just have one "if (!_gnome_init || !_gnome_icon_theme_new || ...)" statement.

+ if (gLibGnomeUI) {
+ PR_UnloadLibrary(gLibGnomeUI);
+ gLibGnomeUI = nsnull;
+ }

Also set gTriedToLoadLibGnomeUI to false so we can start up again if we need to.

Otherwise looks just right!