diff options
author | smatz <smatz@openttd.org> | 2009-10-04 14:49:39 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-10-04 14:49:39 +0000 |
commit | 5c2fb2f8c18ddaeed9d4a0ff97fd970077fdd17b (patch) | |
tree | 0bb4f1d158c1446d388a57c6e436186fded551bf /src | |
parent | 1e665c7639a81da6e50e888976569b64288d8052 (diff) | |
download | openttd-5c2fb2f8c18ddaeed9d4a0ff97fd970077fdd17b.tar.xz |
(svn r17690) -Fix: minor coding style issue
Diffstat (limited to 'src')
-rw-r--r-- | src/driver.cpp | 3 |
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 */ |