[gtk/matthiasc/for-master] Plug a memory leak in an error case
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] Plug a memory leak in an error case
- Date: Wed, 16 Sep 2020 20:01:28 +0000 (UTC)
commit 2602368e33db0d57d039b52af5ac26be75ed43dd
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Sep 16 15:59:49 2020 -0400
Plug a memory leak in an error case
gtk_show_uri() not freeing the error after showing
it to the user.
Pointed out by Peter Bloomfield in #3166
gtk/gtkshow.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkshow.c b/gtk/gtkshow.c
index 0160a8fe9d..9ecfeb7d84 100644
--- a/gtk/gtkshow.c
+++ b/gtk/gtkshow.c
@@ -182,6 +182,8 @@ show_uri_done (GObject *object,
G_CALLBACK (gtk_window_destroy), NULL);
gtk_window_present (GTK_WINDOW (dialog));
+
+ g_error_free (error);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]