[Bug 788457] New: Memory leak in videowidgettest.cpp
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Oct 3 04:24:16 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=788457
Bug ID: 788457
Summary: Memory leak in videowidgettest.cpp
Classification: Platform
Product: GStreamer
Version: 1.13.x
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: qt-gstreamer
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: renu1.r at samsung.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Hi
qt-gstreamer\tests\manual\videowidgettest.cpp
VideoWidgetTest::VideoWidgetTest(QWidget *parent, Qt::WindowFlags f)
: QWidget(parent, f)
{
m_ui.setupUi(this);
QButtonGroup *group = new QButtonGroup(this);
group->addButton(m_ui.playingButton, QGst::StatePlaying);
group->addButton(m_ui.pausedButton, QGst::StatePaused);
group->addButton(m_ui.readyButton, QGst::StateReady);
group->addButton(m_ui.nullButton, QGst::StateNull);
connect(group, SIGNAL(buttonClicked(int)), SLOT(onButtonClicked(int)));
m_pipeline = QGst::Pipeline::create();
m_src = QGst::ElementFactory::make("videotestsrc");
if (!m_src) {
throw std::runtime_error("Unable to create a videotestsrc");
}
m_pipeline->add(m_src);
}
Here when m_src is not created , then we should free the group element memory.
if (!m_src) {
delete group;
throw std::runtime_error("Unable to create a videotestsrc");
}
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list