mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-25 13:16:11 +03:00
apprt/gtk-ng: clear memory properly
This commit is contained in:
@ -863,9 +863,14 @@ pub const Surface = extern struct {
|
|||||||
priv.core_surface = null;
|
priv.core_surface = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
var @"null": gobject.Value = undefined;
|
if (priv.pwd) |v| {
|
||||||
if (priv.pwd != null) properties.pwd.set(self, &@"null");
|
glib.free(@constCast(@ptrCast(v)));
|
||||||
if (priv.title != null) properties.pwd.set(self, &@"null");
|
priv.pwd = null;
|
||||||
|
}
|
||||||
|
if (priv.title) |v| {
|
||||||
|
glib.free(@constCast(@ptrCast(v)));
|
||||||
|
priv.title = null;
|
||||||
|
}
|
||||||
|
|
||||||
gobject.Object.virtual_methods.finalize.call(
|
gobject.Object.virtual_methods.finalize.call(
|
||||||
Class.parent,
|
Class.parent,
|
||||||
|
Reference in New Issue
Block a user