From 5c2fb2f8c18ddaeed9d4a0ff97fd970077fdd17b Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 4 Oct 2009 14:49:39 +0000 Subject: [PATCH] (svn r17690) -Fix: minor coding style issue --- src/driver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/driver.cpp b/src/driver.cpp index 6b70515f1d..96ccd761eb 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 */