From cd2171cc5cbf7133deae8332546b60c89cf933e4 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Tue, 9 Oct 2012 09:20:18 -0700 Subject: [PATCH] [Issue #569] Adding missing ownership field in JSON properties --- AFNetworking/AFJSONRequestOperation.h | 2 +- AFNetworking/AFJSONRequestOperation.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AFNetworking/AFJSONRequestOperation.h b/AFNetworking/AFJSONRequestOperation.h index ed82e6a963..f5ead5b7a7 100644 --- a/AFNetworking/AFJSONRequestOperation.h +++ b/AFNetworking/AFJSONRequestOperation.h @@ -44,7 +44,7 @@ /** A JSON object constructed from the response data. If an error occurs while parsing, `nil` will be returned, and the `error` property will be set to the error. */ -@property (readonly, nonatomic) id responseJSON; +@property (readonly, nonatomic, strong) id responseJSON; ///---------------------------------- /// @name Creating Request Operations diff --git a/AFNetworking/AFJSONRequestOperation.m b/AFNetworking/AFJSONRequestOperation.m index f5c438e0f4..7fa9669ab7 100644 --- a/AFNetworking/AFJSONRequestOperation.m +++ b/AFNetworking/AFJSONRequestOperation.m @@ -32,8 +32,8 @@ static dispatch_queue_t json_request_operation_processing_queue() { } @interface AFJSONRequestOperation () -@property (readwrite, nonatomic) id responseJSON; -@property (readwrite, nonatomic) NSError *JSONError; +@property (readwrite, nonatomic, strong) id responseJSON; +@property (readwrite, nonatomic, strong) NSError *JSONError; @end @implementation AFJSONRequestOperation