summaryrefslogtreecommitdiff
path: root/matlab/src/ObjectPrx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'matlab/src/ObjectPrx.cpp')
-rw-r--r--matlab/src/ObjectPrx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/matlab/src/ObjectPrx.cpp b/matlab/src/ObjectPrx.cpp
index 9ecc9abab56..5081866fd7a 100644
--- a/matlab/src/ObjectPrx.cpp
+++ b/matlab/src/ObjectPrx.cpp
@@ -188,7 +188,7 @@ extern "C"
mxArray*
Ice_ObjectPrx_unref(void* self)
{
- delete &deref<Ice::ObjectPrx>(self);
+ delete reinterpret_cast<shared_ptr<Ice::ObjectPrx>*>(self);
return 0;
}