[vlc-devel] commit: fix memleak ( Rafaël Carré )
git version control
git at videolan.org
Thu Jan 28 15:26:28 CET 2010
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Thu Jan 28 15:26:21 2010 +0100| [d1b06eaf9d891b0f123acb37b4136bed0d015526] | committer: Rafaël Carré
fix memleak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d1b06eaf9d891b0f123acb37b4136bed0d015526
---
.../gui/qt4/components/playlist/standardpanel.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index ac2d14c..fa2125c 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -437,7 +437,9 @@ void LocationBar::setIndex( const QModelIndex &index )
{
QToolButton *btn = new QToolButton;
PLItem *item = model->getItem( i );
- QString text = qfu(input_item_GetTitleFbName( item->inputItem() ));
+ char *fb_name = input_item_GetTitleFbName( item->inputItem() );
+ QString text = qfu(fb_name);
+ free(fb_name);
text = QString("/ ") + metrics.elidedText( text, Qt::ElideRight, 150 );
btn->setText( text );
btn->setToolButtonStyle( Qt::ToolButtonTextBesideIcon );
More information about the vlc-devel
mailing list