diff --git a/DockingFeature/DockingDlgInterface.h b/DockingFeature/DockingDlgInterface.h index 894aa8e..dbaffa0 100644 --- a/DockingFeature/DockingDlgInterface.h +++ b/DockingFeature/DockingDlgInterface.h @@ -41,7 +41,7 @@ class DockingDlgInterface : public StaticDialog void create(tTbData * data, bool isRTL = false){ StaticDialog::create(_dlgID, isRTL); - ::GetWindowText(_hSelf, _pluginName, sizeof(_pluginName)); + ::GetWindowText(_hSelf, _pluginName, sizeof(_pluginName)/sizeof(TCHAR)); // user information data->hClient = _hSelf; diff --git a/globals.cpp b/globals.cpp index f185abf..8990234 100644 --- a/globals.cpp +++ b/globals.cpp @@ -97,6 +97,8 @@ wstring GetPythonPath() { pythonInstalled = true; break; } + + delete[] nPtr; } while (FindNextFile(h, &data)); }