[file-roller/wip/jtojnar/engrampa-backports: 21/21] dlg-package-installer: fix memory leak
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller/wip/jtojnar/engrampa-backports: 21/21] dlg-package-installer: fix memory leak
- Date: Wed, 27 Jul 2022 02:04:05 +0000 (UTC)
commit f0e7a87f55977a81e9b520a77474f6dff2637f3f
Author: rbuj <robert buj gmail com>
Date: Thu Oct 21 20:12:17 2021 +0200
dlg-package-installer: fix memory leak
Cherry picked from
https://github.com/mate-desktop/engrampa/commit/535e01ed893f6e67f73ae6a9de03e072d86b78e3
src/dlg-package-installer.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/dlg-package-installer.c b/src/dlg-package-installer.c
index dd1e23b2..9ca6a9f0 100644
--- a/src/dlg-package-installer.c
+++ b/src/dlg-package-installer.c
@@ -307,9 +307,11 @@ file_buffer_ready_cb (GObject *source_object,
{
char *secondary_text;
GtkWidget *dialog;
+ g_autofree char *description;
+ description = g_content_type_get_description (mime_type);
secondary_text = g_strdup_printf (_("There is no command installed for %s files.\nDo you want
to search for a command to open this file?"),
- g_content_type_get_description (mime_type));
+ description);
dialog = _gtk_message_dialog_new (GTK_WINDOW (idata->window),
GTK_DIALOG_MODAL,
_("Could not open this file type"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]