Commit 856cbce8 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

qt: actions_manager: Fix potential leak

(cherry picked from commit 99b33932)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 54379d8d
......@@ -261,6 +261,11 @@ void ActionsManager::onRendererItemAdded(vlc_renderer_item_t* p_item)
VLCMenuBar::rendererMenu->insertAction( firstSeparator, action );
VLCMenuBar::rendererGroup->addAction(action);
}
else
{
vlc_renderer_item_release( p_item );
delete action;
}
}
void ActionsManager::onRendererItemRemoved( vlc_renderer_item_t* p_item )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment