Skip to content

Commit

Permalink
Merge pull request #3 from ip-gpu/PVS_fixes
Browse files Browse the repository at this point in the history
fixed from PVS-Studio
  • Loading branch information
mpcabd authored Oct 30, 2017
2 parents 83d3d1b + 60a98a5 commit 03e58c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DockingFeature/DockingDlgInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ wstring GetPythonPath() {
pythonInstalled = true;
break;
}

delete[] nPtr;
} while (FindNextFile(h, &data));
}

Expand Down

0 comments on commit 03e58c2

Please sign in to comment.