We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a6078a commit 9e5145bCopy full SHA for 9e5145b
Callback/Callback.xs
@@ -665,15 +665,15 @@ PPCODE:
665
//Code here to make a inter thread refcount to deal with ithreads cloning
666
//to prevent a double free
667
SVUVVar = SvRV(ptr_obj);
668
- #if defined(USE_ITHREADS)
+#if defined(USE_ITHREADS)
669
mg = mg_findext(SVUVVar, PERL_MAGIC_ext,&vtbl_HeapBlock);
670
refcnt = InterlockedDecrement((LONG *) mg->mg_ptr);
671
if(refcnt == 0 ){ //if -1 or -2, means another thread will free it
672
- #endif
+#endif
673
HeapFree(execHeap, 0, (LPVOID)SvUV(SVUVVar));
674
675
}
676
677
678
MODULE = Win32::API::Callback PACKAGE = Win32::API::Callback::IATPatch
679
0 commit comments