# HG changeset patch # User ib # Date 1297875596 0 # Node ID 097e8f1feabe103a559ff31a281eb7833db198b6 # Parent 880e112a9a7163d5266b0d030ed459d9021461d7 Remove needless pointer check. diff -r 880e112a9a71 -r 097e8f1feabe gui/skin/font.c --- a/gui/skin/font.c Wed Feb 16 16:44:42 2011 +0000 +++ b/gui/skin/font.c Wed Feb 16 16:59:56 2011 +0000 @@ -125,8 +125,7 @@ mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[font] image file: %s\n",tmp ); if ( skinBPRead( tmp,&Fonts[id]->Bitmap ) ) { - if (Fonts[id]->Bitmap.Image) - gfree((void **) &Fonts[id]->Bitmap.Image); + gfree((void **) &Fonts[id]->Bitmap.Image); gfree((void **) &Fonts[id]); fclose(f); return -4; @@ -245,7 +244,7 @@ fbw=Fonts[id]->Bitmap.Width; th=fntTextHeight(id, txt); - if (item->Bitmap.Image && (item->height != th)) + if (item->height != th) gfree((void **) &item->Bitmap.Image); if ( item->Bitmap.Image == NULL )