diff options
author | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-19 12:54:06 +0000 |
---|---|---|
committer | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-19 12:54:06 +0000 |
commit | d8925752b84cfa3570a9d1ef45d490b2d0f0ee0b (patch) | |
tree | 82814e3b845dbe5d5774c7e1780984c26362a9a7 /libmpdemux/tvi_def.h | |
parent | 35c39674d7a68bdeb5eb3f4f7dd175649b4c8f15 (diff) | |
download | mpv-d8925752b84cfa3570a9d1ef45d490b2d0f0ee0b.tar.bz2 mpv-d8925752b84cfa3570a9d1ef45d490b2d0f0ee0b.tar.xz |
checkings for malloc results (potential memleaks)
btw: C functions in .h files is dirty :)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3612 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/tvi_def.h')
-rw-r--r-- | libmpdemux/tvi_def.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libmpdemux/tvi_def.h b/libmpdemux/tvi_def.h index aaca6d5a2f..9684127aca 100644 --- a/libmpdemux/tvi_def.h +++ b/libmpdemux/tvi_def.h @@ -45,8 +45,9 @@ static tvi_handle_t *new_handle() static void free_handle(tvi_handle_t *h) { - if (h->priv) - free(h->priv); - if (h) + if (h) { + if (h->priv) + free(h->priv); free(h); + } } |