Skip to content
Snippets Groups Projects
Commit a71dce83 authored by Ilka Antcheva's avatar Ilka Antcheva
Browse files

From Valeri Fine:

- fix a bug discovered with valgrind


git-svn-id: http://root.cern.ch/svn/root/trunk@16699 27541ba8-7e3a-0410-8455-c3a389f83636
parent 3ad9737b
No related branches found
No related tags found
No related merge requests found
// @(#)root/qt:$Name: $:$Id: TQMimeTypes.cxx,v 1.4 2006/03/24 15:31:10 antcheva Exp $
// @(#)root/qt:$Name: $:$Id: TQMimeTypes.cxx,v 1.5 2006/05/10 14:06:06 rdm Exp $
// Author: Valeri Fine 21/01/2003
/*************************************************************************
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
......@@ -334,7 +334,7 @@ void TQMimeTypes::AddType(const char *type, const char *pattern, const char *ico
mime->fIcon = new QIcon( QPixmap(picnam) ) ;
#endif /* QT_VERSION */
}
delete picnam;
delete [] picnam;
mime->fAction = action;
mime->fReg = new TRegexp(pattern, kTRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment