summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/driver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/driver.cpp b/src/driver.cpp
index 6b70515f1..96ccd761e 100644
--- a/src/driver.cpp
+++ b/src/driver.cpp
@@ -195,7 +195,8 @@ char *DriverFactoryBase::GetDriversInfo(char *p, const char *last)
/** Frees memory used for this->name
*/
-DriverFactoryBase::~DriverFactoryBase() {
+DriverFactoryBase::~DriverFactoryBase()
+{
if (this->name == NULL) return;
/* Prefix the name with driver type to make it unique */