summaryrefslogtreecommitdiff
path: root/src/dlg-package-installer.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-21 20:12:17 +0200
committerraveit65 <[email protected]>2022-01-29 15:00:59 +0100
commit535e01ed893f6e67f73ae6a9de03e072d86b78e3 (patch)
treefd9c7faac869c86dd4368a22a12d60fb1087f8bd /src/dlg-package-installer.c
parentfa0265b4dee95f2ccc7a279fc1dedc27909929ab (diff)
downloadengrampa-535e01ed893f6e67f73ae6a9de03e072d86b78e3.tar.bz2
engrampa-535e01ed893f6e67f73ae6a9de03e072d86b78e3.tar.xz
dlg-package-installer: fix memory leak
Diffstat (limited to 'src/dlg-package-installer.c')
-rw-r--r--src/dlg-package-installer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dlg-package-installer.c b/src/dlg-package-installer.c
index 1873cbe..d278987 100644
--- a/src/dlg-package-installer.c
+++ b/src/dlg-package-installer.c
@@ -296,9 +296,11 @@ dlg_package_installer (FrWindow *window,
{
char *secondary_text;
GtkWidget *dialog;
+ char *description;
+ description = g_content_type_get_description (idata->archive->content_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 (idata->archive->content_type));
+ description);
dialog = _gtk_message_dialog_new (GTK_WINDOW (idata->window),
GTK_DIALOG_MODAL,
"dialog-error",
@@ -319,6 +321,7 @@ dlg_package_installer (FrWindow *window,
g_signal_connect (dialog, "response", G_CALLBACK (confirm_search_dialog_response_cb), idata);
gtk_widget_show (dialog);
+ g_free (description);
g_free (secondary_text);
}