Skip to content

Commit 1293894

Browse files
committed
Reacquire GIL to create the python string object
Thanks to Dieter Koessl for reporting. https://sourceforge.net/p/npppythonscript/discussion/1188885/thread/566ac7bf/#ca2a
1 parent 44da0b5 commit 1293894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PythonScript/src/NotepadPlusWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ boost::python::object NotepadPlusWrapper::prompt(boost::python::object promptObj
706706
GILRelease release;
707707
result = promptDlg.showPrompt(cPrompt, cTitle, cInitial);
708708

709-
709+
release.reacquire();
710710
if (PromptDialog::RESULT_OK == result)
711711
{
712712
return boost::python::str(promptDlg.getText());

0 commit comments

Comments
 (0)