|
|
@ -153,6 +153,7 @@ struct fake_class { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
static void* fake_pointer_arg_copy(void* arg) { |
|
|
|
static void* fake_pointer_arg_copy(void* arg) { |
|
|
|
|
|
|
|
gpr_log(GPR_DEBUG, "fake_pointer_arg_copy"); |
|
|
|
fake_class* fc = static_cast<fake_class*>(arg); |
|
|
|
fake_class* fc = static_cast<fake_class*>(arg); |
|
|
|
fake_class* new_fc = static_cast<fake_class*>(gpr_malloc(sizeof(fake_class))); |
|
|
|
fake_class* new_fc = static_cast<fake_class*>(gpr_malloc(sizeof(fake_class))); |
|
|
|
new_fc->foo = fc->foo; |
|
|
|
new_fc->foo = fc->foo; |
|
|
@ -160,6 +161,7 @@ static void* fake_pointer_arg_copy(void* arg) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static void fake_pointer_arg_destroy(void* arg) { |
|
|
|
static void fake_pointer_arg_destroy(void* arg) { |
|
|
|
|
|
|
|
gpr_log(GPR_DEBUG, "fake_pointer_arg_destroy"); |
|
|
|
fake_class* fc = static_cast<fake_class*>(arg); |
|
|
|
fake_class* fc = static_cast<fake_class*>(arg); |
|
|
|
gpr_free(fc); |
|
|
|
gpr_free(fc); |
|
|
|
} |
|
|
|
} |
|
|
|