- if (g_oglNormalFont)
- {
- delete g_oglNormalFont;
- g_oglNormalFont = NULL;
- }
- if (g_oglBlackPen)
- {
- delete g_oglBlackPen;
- g_oglBlackPen = NULL;
- }
- if (g_oglWhiteBackgroundPen)
- {
- delete g_oglWhiteBackgroundPen;
- g_oglWhiteBackgroundPen = NULL;
- }
- if (g_oglTransparentPen)
- {
- delete g_oglTransparentPen;
- g_oglTransparentPen = NULL;
- }
- if (g_oglWhiteBackgroundBrush)
- {
- delete g_oglWhiteBackgroundBrush;
- g_oglWhiteBackgroundBrush = NULL;
- }
- if (g_oglBlackForegroundPen)
- {
- delete g_oglBlackForegroundPen;
- g_oglBlackForegroundPen = NULL;
- }
+ g_oglNormalFont = NULL; // These will be cleaned up by their GDI list
+ g_oglBlackPen = NULL;
+ g_oglTransparentPen = NULL;
+ g_oglBlackForegroundPen = NULL;
+ g_oglWhiteBackgroundPen = NULL;
+ g_oglWhiteBackgroundBrush = NULL;