关于DUIwebView的时候内存暴涨不释放
plp890 opened this issue · comments
plp890 commented
一直用的DUIwebView.一开始没发现2个问题.(1)在不退出页面的时候操作的时候内存一直涨 能涨到1个G不释放,目前测试加载任何网页 都有这种问题. (2)我检测内存 发现退出页面内存没有改变 在+(NSArray *)allMethodFromClass:(Class)class 中的Method *methods = class_copyMethodList(class, &count) 没有释放 我free(methods)之后 稍微有改观 但是效果不明显
duwen commented
反射free(methods)
这个问题在3.0中已修复, UIwebView本身问题就比较多,这也是3.0放弃支持UIwebView的原因。建议使用wkwebview, 还有就是dsbridge 3.0和2.0不兼容,升级请注意