alibaba / alibaba/HandyJSON

使用HandyJSON解析数组的时候,Instruments会爆内存泄漏

Open
#258 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.3k
Forks
677
PR merge metrics
No merged PRs in 30d

Description

代码如下
`if let lables = [HomeZhuanJiListItem].deserialize(from: response["data"] as? NSArray){

}`
instruments会爆内存泄漏的

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the provided [HomeZhuanJiListItem].deserialize call with response["data"] as NSArray while recording it in Instruments. Determine whether the reported memory leak occurs during array deserialization, then verify that the issue no longer appears under the same reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.