summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--php/src/ice/ice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/php/src/ice/ice.cpp b/php/src/ice/ice.cpp
index 06546511cc7..feda3b905bf 100644
--- a/php/src/ice/ice.cpp
+++ b/php/src/ice/ice.cpp
@@ -111,6 +111,9 @@ ZEND_MSHUTDOWN_FUNCTION(ice)
status = FAILURE;
}
+ delete static_cast<MarshalerMap*>(ICE_G(marshalerMap));
+ delete static_cast<Ice::PropertiesPtr*>(ICE_G(properties));
+
return status;
}
@@ -131,9 +134,6 @@ ZEND_RINIT_FUNCTION(ice)
ZEND_RSHUTDOWN_FUNCTION(ice)
{
- delete static_cast<MarshalerMap*>(ICE_G(marshalerMap));
- delete static_cast<Ice::PropertiesPtr*>(ICE_G(properties));
-
return SUCCESS;
}