summaryrefslogtreecommitdiff
path: root/libavdevice/dshow.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-28 18:17:12 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-28 18:17:12 +0100
commit9c3a8693a20da3ad89a327bf778e13c2cd74c81c (patch)
treecc1ec492ddaa86634b6262576dd567a77b2368c3 /libavdevice/dshow.c
parenta3f6e8c4d926f55456e1f3ca8587c38bf3c82e09 (diff)
avdevice/dshow: Remove unneeded NULL checks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/dshow.c')
-rw-r--r--libavdevice/dshow.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index b20eab679b..f326ca2bdc 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -294,8 +294,7 @@ dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum,
}
fail1:
- if (buf)
- av_free(buf);
+ av_free(buf);
if (bag)
IPropertyBag_Release(bag);
IMoniker_Release(m);
@@ -458,8 +457,7 @@ next:
}
end:
IAMStreamConfig_Release(config);
- if (caps)
- av_free(caps);
+ av_free(caps);
if (pformat_set)
*pformat_set = format_set;
}