OSDN Git Service

Fix miss ReleaseBuffer at Git construct function
authorFrank Li <lznuaa@gmail.com>
Fri, 6 Feb 2009 05:40:11 +0000 (13:40 +0800)
committerFrank Li <lznuaa@gmail.com>
Fri, 6 Feb 2009 05:40:11 +0000 (13:40 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/Git/Git.cpp

index 2b7be0d..bf220cd 100644 (file)
@@ -111,7 +111,7 @@ CGit g_Git;
 CGit::CGit(void)\r
 {\r
        GetCurrentDirectory(MAX_DIRBUFFER,m_CurrentDir.GetBuffer(MAX_DIRBUFFER));\r
 CGit::CGit(void)\r
 {\r
        GetCurrentDirectory(MAX_DIRBUFFER,m_CurrentDir.GetBuffer(MAX_DIRBUFFER));\r
-\r
+       m_CurrentDir.ReleaseBuffer();\r
        // make sure git/bin is in PATH before wingit.dll gets (delay) loaded by wgInit()\r
        if ( !CheckMsysGitDir() )\r
        {\r
        // make sure git/bin is in PATH before wingit.dll gets (delay) loaded by wgInit()\r
        if ( !CheckMsysGitDir() )\r
        {\r