Commit 66aadf5e authored by Martin Finkel's avatar Martin Finkel

string interop: free libvlc string

parent 3ee232b8
......@@ -1292,7 +1292,7 @@ namespace LibVLCSharp.Shared
/// </summary>
public string AspectRatio
{
get => Native.LibVLCVideoGetAspectRatio(NativeReference).FromUtf8();
get => Native.LibVLCVideoGetAspectRatio(NativeReference).FromUtf8(libvlcFree: true);
set
{
var aspectRatioUtf8 = value.ToUtf8();
......@@ -1364,7 +1364,7 @@ namespace LibVLCSharp.Shared
/// </summary>
public string CropGeometry
{
get => Native.LibVLCVideoGetCropGeometry(NativeReference).FromUtf8();
get => Native.LibVLCVideoGetCropGeometry(NativeReference).FromUtf8(libvlcFree: true);
set
{
var cropGeometryUtf8 = value.ToUtf8();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment