avdevice/decklink: Fix segfault when running -list_devices on OSX
authorDevin Heitmueller <dheitmueller@ltnglobal.com>
Tue, 26 Sep 2017 16:06:20 +0000 (12:06 -0400)
committerMarton Balint <cus@passwd.hu>
Wed, 4 Oct 2017 20:48:23 +0000 (22:48 +0200)
commitb6782a192e18161f33fc5e943b6f33dcb97e7287
tree57f77f85d716473623b80e6dd7ef8e184857949b
parent3dc01223ef5248ec559e439fb22c38721151c894
avdevice/decklink: Fix segfault when running -list_devices on OSX

The string is allocated with CFStringGetCString but was being
deallocated with free(), which would intermittently result in
a segmentation fault.  Use the correct function for freeing the
allocated CFString.

Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
libavdevice/decklink_common.cpp