Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Fixed an issue where registering a UIProgessView to a task that was causing a crash #3604

Merged

Conversation

mmeylan
Copy link

@mmeylan mmeylan commented Jul 5, 2016

Noticed that when having a UIProgressView calling setProgressWithUploadProgressOfTask:animated:or setProgressWithDownloadProgressOfTask:animated of UIProgressView+AFNetworking with the task parameter object having already completed (status == NSURLSessionTaskStateCompleted), the app would crash when the task object is deallocated with the following error:

CRASH: Fatal exception: An instance ***** of class ******* was deallocated while key value observers were still registered with it.

…lready completed would crash with the following error:

CRASH: Fatal exception: An instance ***** of class ******* was deallocated while key value observers were still registered with it.
@codecov-io
Copy link

Current coverage is 77.92%

No coverage report found for master at 2a53b2c.

Powered by Codecov. Last updated by 2a53b2c...7dc973b

@kcharwood
Copy link
Contributor

Thanks!

@kcharwood kcharwood merged commit fdb2d14 into AFNetworking:master Aug 3, 2016
@kcharwood kcharwood added the fixed label Aug 3, 2016
@kcharwood kcharwood modified the milestones: 3.1.1, 3.2.0 Oct 3, 2016
@kcharwood kcharwood changed the title Fixed an issue where registering a UIProgessView to a task that was a… Fixed an issue where registering a UIProgessView to a task that was causing a crash Oct 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants