Mercurial > mplayer.hg
comparison libvo/vo_jpeg.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 | 168e89b341b1 |
children | ddb45e9443ec |
comparison
equal
deleted
inserted
replaced
32536:187f26cba0ce | 32537:8fa2f43cb760 |
---|---|
307 | 307 |
308 /* ------------------------------------------------------------------------- */ | 308 /* ------------------------------------------------------------------------- */ |
309 | 309 |
310 static void uninit(void) | 310 static void uninit(void) |
311 { | 311 { |
312 if (jpeg_subdirs) { | 312 free(jpeg_subdirs); |
313 free(jpeg_subdirs); | 313 jpeg_subdirs = NULL; |
314 jpeg_subdirs = NULL; | 314 free(jpeg_outdir); |
315 } | 315 jpeg_outdir = NULL; |
316 if (jpeg_outdir) { | |
317 free(jpeg_outdir); | |
318 jpeg_outdir = NULL; | |
319 } | |
320 } | 316 } |
321 | 317 |
322 /* ------------------------------------------------------------------------- */ | 318 /* ------------------------------------------------------------------------- */ |
323 | 319 |
324 static void check_events(void) | 320 static void check_events(void) |