i think this fixes a memory leak

This commit is contained in:
Erica Z 2024-10-17 22:45:50 +02:00
parent d91f945375
commit ffa6b20854
2 changed files with 2 additions and 1 deletions

View file

@ -12,6 +12,7 @@ private class SourceFuncWrapper {
} }
} }
class Playbin : GLib.Object { class Playbin : GLib.Object {
private Mpv.Handle mpv = new Mpv.Handle (); private Mpv.Handle mpv = new Mpv.Handle ();

View file

@ -121,7 +121,7 @@ namespace Mpv {
[CCode (cname = "mpv_event_property", destroy_function = "", has_type_id = false, has_copy_function = false)] [CCode (cname = "mpv_event_property", destroy_function = "", has_type_id = false, has_copy_function = false)]
public struct EventProperty { public struct EventProperty {
string name; unowned string name;
Format format; Format format;
void *data; void *data;