[gtk/matthiasc/for-master: 6/6] printdialog: Plug listmodel memory leaks
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 6/6] printdialog: Plug listmodel memory leaks
- Date: Tue, 10 Nov 2020 14:08:52 +0000 (UTC)
commit c442f9f05a2e4831ac520fbacbd76348ccd1a04d
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 10 09:07:54 2020 -0500
printdialog: Plug listmodel memory leaks
We were leaking references returned from g_list_model_get_item
in some places.
gtk/gtkpagesetupunixdialog.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkpagesetupunixdialog.c b/gtk/gtkpagesetupunixdialog.c
index 8cc9768a5a..ea61efd367 100644
--- a/gtk/gtkpagesetupunixdialog.c
+++ b/gtk/gtkpagesetupunixdialog.c
@@ -702,6 +702,8 @@ paper_size_changed (GtkDropDown *combo_box,
g_signal_connect (custom_paper_dialog, "response", G_CALLBACK (custom_paper_dialog_response_cb),
dialog);
gtk_window_present (GTK_WINDOW (custom_paper_dialog));
+ g_object_unref (page_setup);
+
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]