Mercurial > mplayer.hg
comparison libmenu/menu_console.c @ 32537:8fa2f43cb760
Remove most of the NULL pointer check before free all over the code
author | cboesch |
---|---|
date | Sun, 14 Nov 2010 09:12:34 +0000 |
parents | 9e627a1793b1 |
children | caa2267e0cc6 |
comparison
equal
deleted
inserted
replaced
32536:187f26cba0ce | 32537:8fa2f43cb760 |
---|---|
140 } | 140 } |
141 if(eol[1]) add_line(priv,eol+1); | 141 if(eol[1]) add_line(priv,eol+1); |
142 return; | 142 return; |
143 } | 143 } |
144 | 144 |
145 if(priv->num_lines >= priv->buf_lines && priv->lines[priv->last_line]) | 145 if(priv->num_lines >= priv->buf_lines) |
146 free(priv->lines[priv->last_line]); | 146 free(priv->lines[priv->last_line]); |
147 else | 147 else |
148 priv->num_lines++; | 148 priv->num_lines++; |
149 | 149 |
150 priv->lines[priv->last_line] = strdup(l); | 150 priv->lines[priv->last_line] = strdup(l); |