[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:35:53 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: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Sun Oct 7 14:45:15 2007

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

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