提交 c6b71c0a 编写于 作者: W wangtiantian

IssueNo:#I3VAVC

Description:add failed log
Sig:graphic
Feature or Bugfix:Bugfix
Binary Source:No
Signed-off-by: Nwangtiantian <wang_thinking@163.com>
上级 3b8e68eb
......@@ -137,6 +137,7 @@ UIList::~UIList()
UIView* view = GetChildrenHead();
while (view != nullptr) {
UIView* tmp = view->GetNextSibling();
UIViewGroup::Remove(view);
delete view;
view = tmp;
}
......
......@@ -36,6 +36,7 @@ UIVideo::~UIVideo()
sliderAnimator_ = nullptr;
}
if (surfaceView_ != nullptr) {
Remove(surfaceView_);
delete surfaceView_;
surfaceView_ = nullptr;
}
......@@ -517,6 +518,7 @@ void UIVideo::DeleteController()
{
if (controllerGroup_ != nullptr) {
controllerGroup_->RemoveAll();
Remove(controllerGroup_);
delete controllerGroup_;
controllerGroup_ = nullptr;
}
......
......@@ -65,6 +65,9 @@ UIView::UIView()
UIView::~UIView()
{
if (parent_ != nullptr) {
GRAPHIC_LOGE("UIView::~UIView failed, parent is not nullptr! Need to remove from parent component first");
}
if (transMap_ != nullptr) {
delete transMap_;
transMap_ = nullptr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册