23 Star 49 Fork 28

OpenHarmony / graphic_lite

异常分支内存泄露frameworks/ui/src/imgdecode/file_img_decoder.cpp line: 123

任务
待办的
螺丝钉  Opened this issue

该问题是怎么引起的?

释放dsc.imgInfo内存之前先将dsc.imgInfo.data置为null,导致后续根本无法释放内存,因为指针已经变成NULL了,此处异常分支引发内存泄露

应该在释放内存之后再将指针置为nullptr

重现步骤

报错信息

输入图片说明

Attachments
total 1 participants

Comments (0)

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
C++
1
https://git.oschina.net/openharmony/graphic_lite.git
git@git.oschina.net:openharmony/graphic_lite.git
openharmony
graphic_lite
graphic_lite

Search