FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[Original HTTPS Page]
Dispose safety · ashsvis/pythonnet@950676f · GitHub
ashsvis
pythonnet
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commit
950676f
Browse files
Browse the repository at this point in the history
Browse files
amos402
committed
Dispose safety
1 parent
03a401e
commit
950676f
Copy full SHA for 950676f
1 file changed
+2
-1
Lines changed: 2 additions & 1 deletion
File tree
Expand file tree
Collapse file tree
Open diff view settings
Filter options
src/runtime
NewReference.cs
Expand file tree
Collapse file tree
Open diff view settings
Collapse file
src/runtime/NewReference.cs
Copy file name to clipboard
Expand all lines: src/runtime/NewReference.cs
+2
-1
Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,8 @@ public void Dispose()
37
37
{
38
38
return
;
39
39
}
40
-
Runtime
.
XDecref
(
this
.
pointer
)
;
40
+
Runtime
.
XDecref
(
pointer
)
;
41
+
pointer
=
IntPtr
.
Zero
;
41
42
}
42
43
43
44
/// <summary>
0 commit comments
Comments
0
(0)
Back
|
FazBrowse Home
|
New Git URL
0 commit comments