| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cc7fe9a commit 5e2e708
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - // ========================================================================== | ||
| 1 | + work// ========================================================================== | ||
| 2 | 2 | // This software is subject to the provisions of the Zope Public License, | |
| 3 | 3 | // Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution. | |
| 4 | 4 | // THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | |
@@ -436,9 +436,7 @@ public static PyObject RunString(string code, IntPtr globals, IntPtr locals) | |||
| 436 | 436 | { | |
| 437 | 437 | IntPtr flag = (IntPtr)257; /* Py_file_input */ | |
| 438 | 438 | IntPtr result = Runtime.PyRun_String(code, flag, globals, locals); | |
| 439 | - Runtime.Decref(locals); | ||
| 440 | - if (result == IntPtr.Zero) | ||
| 441 | - { | ||
| 439 | + if (result == IntPtr.Zero) { | ||
| 442 | 440 | return null; | |
| 443 | 441 | } | |
| 444 | 442 | return new PyObject(result); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments