Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Jan 7, 2025
1 parent 612b96e commit afe7ec4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ruby/src/IceRuby/Communicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ IceRuby_Communicator_mark(void* p)
extern "C" void
IceRuby_Communicator_free(void* p)
{
auto communicator = static_cast<Ice::CommunicatorPtr*>(p);
delete communicator;
delete static_cast<Ice::CommunicatorPtr*>(p);
}

static const rb_data_type_t IceRuby_CommunicatorType = {
Expand Down
1 change: 0 additions & 1 deletion ruby/src/IceRuby/ImplicitContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ static const rb_data_type_t IceRuby_ImplicitContextType = {
.function =
{
.dfree = IceRuby_ImplicitContext_free,

},
.flags = RUBY_TYPED_FREE_IMMEDIATELY,
};
Expand Down
1 change: 1 addition & 0 deletions ruby/src/IceRuby/ValueFactoryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ static const rb_data_type_t IceRuby_ValueFactoryManagerType = {
.wrap_struct_name = "Ice::ValueFactoryManager",
.function =
{
.dmark = IceRuby_ValueFactoryManager_mark,
.dfree = IceRuby_ValueFactoryManager_free,
},
.flags = RUBY_TYPED_FREE_IMMEDIATELY,
Expand Down

0 comments on commit afe7ec4

Please sign in to comment.