alibaba / alibaba/HandyJSON

我发现有内存泄露。

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

Description

我发现了一处内存泄露,不知道是我没用好还是库的问题。显示的是闭包的泄露。

var items : [ABHomeModel]?

items = JSONDeserializer.deserializeModelArrayFrom(array: array) as? [ABHomeModel]
就这两句代码,解析是没问题的,但是一旦使用了这个库解析,就会有泄露提示。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the closure-leak warning with the two-line deserializeModelArrayFrom call shown in the issue. Trace that entry point in HandyJSON and determine whether the leak is caused by the library or by usage; done means the source is identified and the issue's reported behavior is verified or explained.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.