Commit da7a6ca
committed
Ensure global Mutex is initialized before Registry
A Registry instance may be accessed before the global mutex, e.g. here:
https://github.com/openscenegraph/OpenSceneGraph/blob/e77f50371ce6ab05ee0c523fc7a4604ad639e047/src/osgText/Font.cpp#L49
This leads to the Mutex being destroyed before the Registry is destroyed.
This causes a crash at exit, as described in #1048.
Fixes #1048.1 parent e77f503 commit da7a6ca
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
0 commit comments