Skip to content
This repository has been archived by the owner on Aug 4, 2019. It is now read-only.

Commit

Permalink
Fix race condition in OCTToxAVTests
Browse files Browse the repository at this point in the history
refToSelf needs to be set to NULL after deallocating toxAV.
mocked_tox_iterate checks for the presence of OCTToxAVTests by using
the pointer from refToSelf.
  • Loading branch information
Chuongv committed Jun 28, 2015
1 parent 31cf146 commit ec1fb5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions objcToxTests/OCTToxAVTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ - (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.

refToSelf = NULL;

self.tox = nil;
self.toxAV = nil;

refToSelf = NULL;

[super tearDown];
}
Expand Down

0 comments on commit ec1fb5b

Please sign in to comment.