Commit d7931c4d2a8a6d1a11961a6a1fa4a0de76128f11
1 parent
d60e5c87
Exists in
master
and in
5 other branches
Fixing memory allocation error on about dialog.
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
src/pw3270/dialog.c
@@ -515,14 +515,14 @@ | @@ -515,14 +515,14 @@ | ||
515 | } | 515 | } |
516 | } | 516 | } |
517 | 517 | ||
518 | + g_autofree gchar * version = | ||
518 | #ifdef PACKAGE_RELEASE | 519 | #ifdef PACKAGE_RELEASE |
519 | - text = g_strdup_printf(_("Version %s-%s"),PACKAGE_VERSION,G_STRINGIFY(PACKAGE_RELEASE)); | 520 | + g_strdup_printf(_("Version %s-%s"),PACKAGE_VERSION,G_STRINGIFY(PACKAGE_RELEASE)); |
520 | #else | 521 | #else |
521 | - text = g_strdup_printf(_("Version %s-%s"),PACKAGE_VERSION,G_STRINGIFY(BUILD_DATE)); | 522 | + g_strdup_printf(_("Version %s-%s"),PACKAGE_VERSION,G_STRINGIFY(BUILD_DATE)); |
522 | #endif // PACKAGE_REVISION | 523 | #endif // PACKAGE_REVISION |
523 | 524 | ||
524 | - gtk_about_dialog_set_version(dialog,text); | ||
525 | - g_free(text); | 525 | + gtk_about_dialog_set_version(dialog,version); |
526 | 526 | ||
527 | gtk_about_dialog_set_copyright(dialog, "Copyright © 2008 Banco do Brasil S.A." ); | 527 | gtk_about_dialog_set_copyright(dialog, "Copyright © 2008 Banco do Brasil S.A." ); |
528 | 528 | ||
@@ -532,7 +532,7 @@ | @@ -532,7 +532,7 @@ | ||
532 | gtk_about_dialog_set_license(dialog, gettext( license ) ); | 532 | gtk_about_dialog_set_license(dialog, gettext( license ) ); |
533 | gtk_about_dialog_set_wrap_license(dialog,TRUE); | 533 | gtk_about_dialog_set_wrap_license(dialog,TRUE); |
534 | 534 | ||
535 | - gtk_about_dialog_set_website(dialog,"https://portal.softwarepublico.gov.br/social/pw3270/"); | 535 | + gtk_about_dialog_set_website(dialog,_("https://portal.softwarepublico.gov.br/social/pw3270/")); |
536 | gtk_about_dialog_set_website_label(dialog,_( "Brazilian Public Software Portal" )); | 536 | gtk_about_dialog_set_website_label(dialog,_( "Brazilian Public Software Portal" )); |
537 | 537 | ||
538 | gtk_about_dialog_set_authors(dialog,authors); | 538 | gtk_about_dialog_set_authors(dialog,authors); |