[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Bug in TortoiseSVN shell extension

From: Christoph von Wittich <Christoph_at_ApiViewer.de>
Date: 2007-10-07 14:37:58 CEST

Hi!

memory allocated with new[] should be deleted with delete[]
see attached patch

Regards,
Christoph von Wittich
Christoph_vW@ReactOS.org

Index: PreserveChdir.cpp
===================================================================
--- PreserveChdir.cpp (revision 10904)
+++ PreserveChdir.cpp (working copy)
@@ -48,8 +48,8 @@
                 {
                         SetCurrentDirectory(originalCurrentDirectory);
                 }
- delete currentDirectory;
- delete originalCurrentDirectory;
+ delete[] currentDirectory;
+ delete[] originalCurrentDirectory;
                 originalCurrentDirectory = NULL;
         }
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sun Oct 7 14:45:23 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.