File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ std::wstring HelpController::getTopicUrl()
139
139
url.append (buffer + dotPosition + 1 );
140
140
}
141
141
}
142
-
142
+
143
+ delete[] buffer;
144
+
143
145
return WcharMbcsConverter::char2tchar (url.c_str ()).get ();
144
146
}
Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ void ScintillaWrapper::notify(SCNotification *notifyCode)
89
89
90
90
// Create the parameters for the callback
91
91
params[" code" ] = notifyCode->nmhdr .code ;
92
+ params[" idFrom" ] = notifyCode->nmhdr .idFrom ;
93
+ params[" hwndFrom" ] = reinterpret_cast <intptr_t >(notifyCode->nmhdr .hwndFrom );
92
94
93
95
94
96
switch (notifyCode->nmhdr .code )
@@ -236,8 +238,6 @@ void ScintillaWrapper::notify(SCNotification *notifyCode)
236
238
237
239
default :
238
240
// Unknown notification, so just fill in all the parameters.
239
- params[" idFrom" ] = notifyCode->nmhdr .idFrom ;
240
- params[" hwndFrom" ] = notifyCode->nmhdr .hwndFrom ;
241
241
params[" position" ] = notifyCode->position ;
242
242
params[" modificationType" ] = notifyCode->modificationType ;
243
243
if (notifyCode->text )
You can’t perform that action at this time.
0 commit comments