summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-21 20:12:17 +0200
committerraveit65 <[email protected]>2022-07-04 19:59:51 +0200
commitda64dd31f77a8082650d0904da19a21dfc400ae1 (patch)
tree23b3761f83ee026d942e19b0d73851c078cbd4d9
parent785d6db87094eaac5bfa8a57f07bd32da49bffa5 (diff)
downloadengrampa-da64dd31f77a8082650d0904da19a21dfc400ae1.tar.bz2
engrampa-da64dd31f77a8082650d0904da19a21dfc400ae1.tar.xz
dlg-package-installer: fix memory leak
-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 0b18441..3cda168 100644
--- a/src/dlg-package-installer.c
+++ b/src/dlg-package-installer.c
@@ -305,9 +305,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",
@@ -328,6 +330,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);
}