From 084b98bcd2270801cf3c56d395fa3649f0729e63 Mon Sep 17 00:00:00 2001 From: Pip Cet Date: Sun, 19 Jan 2025 03:27:34 +0000 Subject: [PATCH] Fix a GTK memory leak (Bug#75636) * src/gtkutil.c (xg_create_frame_widgets): Don't call g_object_ref. (cherry picked from commit d5f99f4431551865ff547ff2ecb7f10844ce881a) --- src/gtkutil.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gtkutil.c b/src/gtkutil.c index 0e9dd4dfe11..54d2bc63077 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -1735,7 +1735,6 @@ xg_create_frame_widgets (struct frame *f) g_signal_connect (wtop, "query-tooltip", G_CALLBACK (qttip_cb), f); imc = gtk_im_multicontext_new (); - g_object_ref (imc); gtk_im_context_set_use_preedit (imc, TRUE); g_signal_connect (G_OBJECT (imc), "commit", -- 2.39.5