Skip to content

Commit

Permalink
fix memory leak for protocol_copyPropertyList (#680)
Browse files Browse the repository at this point in the history
* fix memory leak for protocol_copyPropertyList
  • Loading branch information
wolfcon authored Apr 29, 2019
1 parent b143a7f commit fc4db8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MJExtension.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "MJExtension"
s.version = "3.0.16"
s.version = "3.0.17"
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.8'
s.summary = "A fast and convenient conversion between JSON and model"
Expand Down
1 change: 1 addition & 0 deletions MJExtension/MJFoundation.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ + (BOOL)isFromNSObjectProtocolProperty:(NSString *)propertyName
}
}
objectProtocolPropertyNames = [propertyNames copy];
free(propertyList);
});

return [objectProtocolPropertyNames containsObject:propertyName];
Expand Down

0 comments on commit fc4db8f

Please sign in to comment.