diff --git a/ruby/src/IceRuby/Endpoint.cpp b/ruby/src/IceRuby/Endpoint.cpp index 5bb8859e702..71745238002 100644 --- a/ruby/src/IceRuby/Endpoint.cpp +++ b/ruby/src/IceRuby/Endpoint.cpp @@ -42,7 +42,7 @@ static const rb_data_type_t IceRuby_EndpointType = { VALUE IceRuby::createEndpoint(const Ice::EndpointPtr& p) { - return TypedData_Wrap_Struct(_endpointClass, &IceRuby_Endpoint, new Ice::EndpointPtr(p)); + return TypedData_Wrap_Struct(_endpointClass, &IceRuby_EndpointType, new Ice::EndpointPtr(p)); } extern "C" VALUE