summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--src/gui/browserbox.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 216e97d1..71a89494 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@
2005-09-28 Björn Steinbrink <B.Steinbrink@gmx.de>
+ * src/gui/browserbox.cpp: Fix deletion of the gui font because of a
+ missing check.
* src/Makefile.am: Added -Werror to the CXXFLAGS to catch warnings
easier.
* src/gui/error.h: Removed unnecessary ambigous inheritance.
diff --git a/src/gui/browserbox.cpp b/src/gui/browserbox.cpp
index 3c389881..23da7225 100644
--- a/src/gui/browserbox.cpp
+++ b/src/gui/browserbox.cpp
@@ -76,7 +76,9 @@ BrowserBox::~BrowserBox()
{
#ifdef USE_OPENGL
// Clean up static resource font
- delete browserFont;
+ if (config.getValue("opengl", 0)) {
+ delete browserFont;
+ }
#endif
}
}