diff --git a/objcxx_eh.cc b/objcxx_eh.cc index 92a96e5..1dc98c2 100644 --- a/objcxx_eh.cc +++ b/objcxx_eh.cc @@ -123,10 +123,12 @@ bool gnustep::libobjc::__objc_id_type_info::__do_catch(const type_info *thrownTy // Id catch matches any ObjC throw if (dynamic_cast(thrownType)) { + *obj = **(id**)obj; return true; } if (dynamic_cast(thrownType)) { + *obj = **(id**)obj; return true; } return false;