diff options
Diffstat (limited to 'plugins/TabSRMM/src/buttonsbar.cpp')
-rw-r--r-- | plugins/TabSRMM/src/buttonsbar.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/buttonsbar.cpp b/plugins/TabSRMM/src/buttonsbar.cpp index 7925c001a0..20e13e190d 100644 --- a/plugins/TabSRMM/src/buttonsbar.cpp +++ b/plugins/TabSRMM/src/buttonsbar.cpp @@ -198,7 +198,10 @@ static INT_PTR CB_AddButton(WPARAM, LPARAM lParam) LButtonsList.insert(cbd); else if (cbd->bRSided) RButtonsList.insert(cbd); - else return 1; + else { + delete cbd; + return 1; + } if (cbd->dwButtonCID != cbd->dwButtonOrigID) LastCID++; |