Differences From Artifact [3e5461799b]:
- File QtCore/QtChildEvent.mm — part of check-in [9463212568] at 2017-04-02 20:51:55 on branch trunk — Initial commit (user: js, size: 874) [annotate] [blame] [check-ins using]
To Artifact [ef11711dc6]:
- File
QtCore/QtChildEvent.mm
— part of check-in
[6de2243af6]
at
2017-04-09 12:20:40
on branch trunk
— Ownership fix for QtChildEvent
When created using initWithType:child:, it should take ownership of the
underlying QChildEvent. (user: js, size: 915) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
12 13 14 15 16 17 18 | return [super initWithQEvent: event]; } - initWithType: (QChildEvent::Type)type child: (QtObject*)child { try { | | > > > > | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | return [super initWithQEvent: event]; } - initWithType: (QChildEvent::Type)type child: (QtObject*)child { try { self = [self initWithQChildEvent: new QChildEvent(type, [child qObject])]; [self takeOwnership]; return self; } catch (const std::bad_alloc &e) { self = [super initWithQEvent: NULL]; [self release]; throw; } } |
︙ | ︙ |