File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,6 @@ internal PyObject(in StolenReference reference)
9696 // when the managed wrapper is garbage-collected.
9797 ~ PyObject ( )
9898 {
99- Debug . Assert ( obj != IntPtr . Zero || this . GetType ( ) != typeof ( PyObject ) ) ;
100-
10199 if ( obj != IntPtr . Zero )
102100 {
103101
Original file line number Diff line number Diff line change @@ -379,14 +379,13 @@ internal static void Shutdown(ShutdownMode mode)
379379 DisposeLazyModule ( inspect ) ;
380380 PyObjectConversions . Reset ( ) ;
381381
382+ PyGC_Collect ( ) ;
382383 bool everythingSeemsCollected = TryCollectingGarbage ( ) ;
383- Debug . Assert ( everythingSeemsCollected ) ;
384384 Finalizer . Shutdown ( ) ;
385385 InternString . Shutdown ( ) ;
386386
387387 if ( mode != ShutdownMode . Normal && mode != ShutdownMode . Extension )
388388 {
389- PyGC_Collect ( ) ;
390389 if ( mode == ShutdownMode . Soft )
391390 {
392391 RuntimeState . Restore ( ) ;
You can’t perform that action at this time.
0 commit comments