From ffa6b20854ec90b0aa5d8c9f8ef77b2d1c49fffe Mon Sep 17 00:00:00 2001 From: Erica Z Date: Thu, 17 Oct 2024 22:45:50 +0200 Subject: [PATCH] i think this fixes a memory leak --- src/playbin.vala | 1 + src/vapi/mpv.vapi | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/playbin.vala b/src/playbin.vala index fb0875f..70a11cd 100644 --- a/src/playbin.vala +++ b/src/playbin.vala @@ -12,6 +12,7 @@ private class SourceFuncWrapper { } } + class Playbin : GLib.Object { private Mpv.Handle mpv = new Mpv.Handle (); diff --git a/src/vapi/mpv.vapi b/src/vapi/mpv.vapi index dce8785..b599979 100644 --- a/src/vapi/mpv.vapi +++ b/src/vapi/mpv.vapi @@ -121,7 +121,7 @@ namespace Mpv { [CCode (cname = "mpv_event_property", destroy_function = "", has_type_id = false, has_copy_function = false)] public struct EventProperty { - string name; + unowned string name; Format format; void *data;