[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/kcontrol/kfontinst/kfile-plugin
From:       Stephan Kulow <coolo () kde ! org>
Date:       2007-03-16 13:52:25
Message-ID: 1174053145.184038.29601.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 643164 by coolo:

delete it instead of overwriting the pointer (CID 3281)


 M  +2 -1      KFileFont.cpp  


--- trunk/KDE/kdebase/workspace/kcontrol/kfontinst/kfile-plugin/KFileFont.cpp \
#643163:643164 @@ -344,7 +344,7 @@
                 spacings,
                 slants;
     KUrl        url(info.url());
-    KTempDir    *tempDir(NULL);
+    KTempDir    *tempDir = 0;
     QString     fName;
     bool        fontsProt  = KFI_KIO_FONTS_PROTOCOL == url.protocol(),
                 fileProt   = "file"                 == url.protocol(),
@@ -394,6 +394,7 @@
 
                                 if(entry && entry->isFile())
                                 {
+				    delete tempDir;
                                     tempDir=new \
KTempDir(KStandardDirs::locateLocal("tmp", KFI_TMP_DIR_PREFIX));  \
tempDir->setAutoRemove(true);  


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic