Previous 15994 Revisions Next

r8254 Wednesday 9th June, 2010 at 20:01:55 UTC by Firewave
[WINUI] Fixed potential memory leak reported by cppcheck
[src/osd/winui]properties.c

src/osd/winui/properties.c
r8253r8254
484484{
485485   PROPSHEETHEADER pshead;
486486   PROPSHEETPAGE   *pspage;
487   TCHAR*          t_description = 0;
487   TCHAR*          t_description = NULL;
488488   OPTIONS_TYPE    default_type = opt_type;
489489   
490490   if (highlight_brush == NULL)
r8253r8254
547547   if (!pspage)
548548      return;
549549
550
551550   // Get the description use as the dialog caption.
552551   switch( opt_type )
553552   {
r8253r8254
563562   case OPTIONS_GLOBAL:
564563      t_description = tstring_from_utf8("Default Settings");
565564      break;
566   default:
567      return;
568565   }
569566   // If we have no descrption, return.
570   if( !t_description )
567   if( !t_description ) {
568      free(pspage);
571569      return;
570   }
572571
573572   /* Fill in the property sheet header */
574573   pshead.pszCaption = t_description;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team