Bugzilla – Attachment 49229 Details for
Bug 115643
gcdmaster : invalid pointer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
This patch fixes the problem.
libgnomeui-2.12.0-free-of-static-mem.diff (text/plain), 992 bytes, created by
Petr Mladek
on 2005-09-08 15:17:53 UTC
(
hide
)
Description:
This patch fixes the problem.
Filename:
MIME Type:
Creator:
Petr Mladek
Created:
2005-09-08 15:17:53 UTC
Size:
992 bytes
patch
obsolete
>--- libgnomeui/gnome-file-entry.c >+++ libgnomeui/gnome-file-entry.c >@@ -445,21 +445,23 @@ > GtkWidget *fw; > GnomeFileEntry *fentry; > GtkWidget *entry; >- const gchar *locale_filename; >+ const gchar *locale_filename, *locale_filename_copy=NULL; > gchar *utf8_filename; > > fw = GTK_WIDGET (data); > fentry = GNOME_FILE_ENTRY (g_object_get_data (G_OBJECT (fw), "gnome_file_entry")); > entry = gnome_file_entry_gtk_entry (fentry); > >- if (GTK_IS_FILE_CHOOSER (fentry->fsw)) >+ if (GTK_IS_FILE_CHOOSER (fentry->fsw)) { > locale_filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (fw)); >- else >+ locale_filename_copy = locale_filename; >+ } else { > locale_filename = gtk_file_selection_get_filename (GTK_FILE_SELECTION (fw)); >+ } > > utf8_filename = g_filename_to_utf8 (locale_filename, -1, NULL, > NULL, NULL); >- g_free (locale_filename); >+ g_free (locale_filename_copy); > gtk_entry_set_text (GTK_ENTRY (entry), utf8_filename); > g_free (utf8_filename); > /* Is this evil? */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 115643
:
49177
|
49178
| 49229