Mercurial > mplayer.hg
diff stream/tv.c @ 32511:b39155e98ac3
Remove some useless NULL pointer checks before invoking free() on the pointer.
patch by From: Clment Bsch, ubitux gmail com
author | diego |
---|---|
date | Sun, 07 Nov 2010 12:47:40 +0000 |
parents | 2802b8095bf7 |
children | 277ec491a8a7 |
line wrap: on
line diff
--- a/stream/tv.c Sun Nov 07 11:03:47 2010 +0000 +++ b/stream/tv.c Sun Nov 07 12:47:40 2010 +0000 @@ -108,13 +108,11 @@ void tv_free_handle(tvi_handle_t *h) { - if (h) { - if (h->priv) - free(h->priv); - if (h->scan) - free(h->scan); - free(h); - } + if (!h) + return; + free(h->priv); + free(h->scan); + free(h); } void tv_start_scan(tvi_handle_t *tvh, int start)