summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c5
-rw-r--r--win32/wince.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/win32/win32.c b/win32/win32.c
index d53741c9ef..a7c409fb9c 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4902,11 +4902,10 @@ Perl_win32_init(int *argcp, char ***argvp)
void
Perl_win32_term(void)
{
+ dTHX;
HINTS_REFCNT_TERM;
OP_REFCNT_TERM;
- /* Can't call PERLIO_TERM here because that calls PerlMemShared_free()
- * but we're too late for that (at least when using PERL_IMPLICIT_SYS)
- * since we've already done perl_free(). */
+ PERLIO_TERM;
MALLOC_TERM;
}
diff --git a/win32/wince.c b/win32/wince.c
index 6e876a8030..846a33b800 100644
--- a/win32/wince.c
+++ b/win32/wince.c
@@ -2660,11 +2660,10 @@ Perl_win32_init(int *argcp, char ***argvp)
DllExport void
Perl_win32_term(void)
{
+ dTHX;
HINTS_REFCNT_TERM;
OP_REFCNT_TERM;
- /* Can't call PERLIO_TERM here because that calls PerlMemShared_free()
- * but we're too late for that (at least when using PERL_IMPLICIT_SYS)
- * since we've already done perl_free(). */
+ PERLIO_TERM;
MALLOC_TERM;
}