summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice')
-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;
}