Skip to content

Commit 03e58c2

Browse files
authored
Merge pull request #3 from ip-gpu/PVS_fixes
fixed from PVS-Studio
2 parents 83d3d1b + 60a98a5 commit 03e58c2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

DockingFeature/DockingDlgInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class DockingDlgInterface : public StaticDialog
4141

4242
void create(tTbData * data, bool isRTL = false){
4343
StaticDialog::create(_dlgID, isRTL);
44-
::GetWindowText(_hSelf, _pluginName, sizeof(_pluginName));
44+
::GetWindowText(_hSelf, _pluginName, sizeof(_pluginName)/sizeof(TCHAR));
4545

4646
// user information
4747
data->hClient = _hSelf;

globals.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ wstring GetPythonPath() {
9797
pythonInstalled = true;
9898
break;
9999
}
100+
101+
delete[] nPtr;
100102
} while (FindNextFile(h, &data));
101103
}
102104

0 commit comments

Comments
 (0)