From 1be0dfa9ba14b98f710fcd7d2e13e2c1dca02029 Mon Sep 17 00:00:00 2001 From: MarkRivers Date: Thu, 7 Sep 2006 19:51:52 +0000 Subject: [PATCH] Fixed memory leaks --- motorApp/NewportSrc/XPS_C8_drivers.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/motorApp/NewportSrc/XPS_C8_drivers.cpp b/motorApp/NewportSrc/XPS_C8_drivers.cpp index 1cc10a96..cd0eac7c 100644 --- a/motorApp/NewportSrc/XPS_C8_drivers.cpp +++ b/motorApp/NewportSrc/XPS_C8_drivers.cpp @@ -476,6 +476,7 @@ long __stdcall GatheringConfigurationSet (int SocketIndex, int NbElements, char strcat (ExecuteMethod, ","); } } + delete stringArray0; strcat (ExecuteMethod, ")"); /* Send this string and wait return function from controller */ @@ -583,6 +584,7 @@ long __stdcall GatheringExternalConfigurationSet (int SocketIndex, int NbElement strcat (ExecuteMethod, ","); } } + delete stringArray0; strcat (ExecuteMethod, ")"); /* Send this string and wait return function from controller */ @@ -779,6 +781,7 @@ long __stdcall GPIOAnalogGet (int SocketIndex, int NbElements, char * GPIONameLi strcat (ExecuteMethod, ","); } } + delete stringArray0; strcat (ExecuteMethod, ")"); /* Send this string and wait return function from controller */ @@ -845,6 +848,7 @@ long __stdcall GPIOAnalogSet (int SocketIndex, int NbElements, char * GPIONameLi strcat (ExecuteMethod, ","); } } + delete stringArray0; strcat (ExecuteMethod, ")"); /* Send this string and wait return function from controller */ @@ -896,6 +900,7 @@ long __stdcall GPIOAnalogGainGet (int SocketIndex, int NbElements, char * GPIONa strcat (ExecuteMethod, ","); } } + delete stringArray0; strcat (ExecuteMethod, ")"); /* Send this string and wait return function from controller */ @@ -962,6 +967,7 @@ long __stdcall GPIOAnalogGainSet (int SocketIndex, int NbElements, char * GPIONa strcat (ExecuteMethod, ","); } } + delete stringArray0; strcat (ExecuteMethod, ")"); /* Send this string and wait return function from controller */