Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
libgnomesu
libgnomesu-no-manual-memory-cleaning.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libgnomesu-no-manual-memory-cleaning.patch of Package libgnomesu
Index: libgnomesu-1.0.0/src/gnomesu-auth-dialog.c =================================================================== --- libgnomesu-1.0.0.orig/src/gnomesu-auth-dialog.c +++ libgnomesu-1.0.0/src/gnomesu-auth-dialog.c @@ -206,6 +206,14 @@ create_stock_button (const gchar *stock, static void clear_entry (GtkWidget *entry) { +#if GTK_CHECK_VERSION(2,18,0) + /* With GTK+ 2.18, GtkEntry uses a GtkEntryBuffer which cleans the + * memory for passwords. See trash_area() in gtkentrybuffer.c. + * The code below actually creates some bugs, like + * https://bugzilla.novell.com/show_bug.cgi?id=351917 so we shouldn't + * use it, if possible. */ + gtk_entry_set_text (GTK_ENTRY (entry), ""); +#else gchar *blank; size_t len; @@ -222,6 +230,7 @@ clear_entry (GtkWidget *entry) gtk_entry_set_text (GTK_ENTRY (entry), ""); if (blank) g_free (blank); +#endif } void
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor