Re: Cross-compiling as of WinCE
[p5sagit/p5-mst-13.2.git] / scope.c
diff --git a/scope.c b/scope.c
index 3262794..85a0680 100644 (file)
--- a/scope.c
+++ b/scope.c
@@ -673,11 +673,11 @@ Perl_leave_scope(pTHX_ I32 base)
            str = (char*)SSPOPPTR;
            ptr = SSPOPPTR;
            if (*(char**)ptr != str) {
-               #ifdef NETWARE
+#ifdef NETWARE
                PerlMem_free(*(char**)ptr);
-               #else
+#else
                PerlMemShared_free(*(char**)ptr);
-               #endif
+#endif
                *(char**)ptr = str;
            }
            break;
@@ -959,6 +959,10 @@ Perl_leave_scope(pTHX_ I32 base)
            PL_op = (OP*)SSPOPPTR;
            break;
        case SAVEt_HINTS:
+           if ((PL_hints & HINT_LOCALIZE_HH) && GvHV(PL_hintgv)) {
+               SvREFCNT_dec((SV*)GvHV(PL_hintgv));
+               GvHV(PL_hintgv) = NULL;
+           }
            *(I32*)&PL_hints = (I32)SSPOPINT;
            break;
        case SAVEt_COMPPAD: