mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
gtk: fix memory leak in GTK clipboard confirmation window
This commit is contained in:
@ -55,6 +55,7 @@ pub fn create(
|
|||||||
fn destroy(self: *ClipboardConfirmation) void {
|
fn destroy(self: *ClipboardConfirmation) void {
|
||||||
const alloc = self.app.core_app.alloc;
|
const alloc = self.app.core_app.alloc;
|
||||||
self.app.clipboard_confirmation_window = null;
|
self.app.clipboard_confirmation_window = null;
|
||||||
|
alloc.free(self.data);
|
||||||
alloc.destroy(self);
|
alloc.destroy(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user