Code

Fixed object leak.
authorJon A. Cruz <jon@joncruz.org>
Fri, 15 Jan 2010 01:16:07 +0000 (17:16 -0800)
committerJon A. Cruz <jon@joncruz.org>
Fri, 15 Jan 2010 01:16:07 +0000 (17:16 -0800)
src/libnrtype/FontFactory.cpp

index afce4d8491058d602e3e9c6da97e795f43b67202..761da7756e62661a8e090968900ed550f27c8366 100644 (file)
@@ -333,6 +333,7 @@ font_factory::~font_factory(void)
 {
     if (loadedPtr) {
         FaceMapType* tmp = static_cast<FaceMapType*>(loadedPtr);
+        delete tmp;
         loadedPtr = 0;
     }