X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fdemo-Gtk.c;h=27d2316d2c494e68d2eaa65e253364ab3af846af;hp=d276ecc543a18648c5f3551edc9a381497457e16;hb=d1ae2829ff0fd2a96c16a0c8c5420efaa47d7b30;hpb=7edd66e6bd3209013ee059819747b10b5835635b diff --git a/driver/demo-Gtk.c b/driver/demo-Gtk.c index d276ecc5..27d2316d 100644 --- a/driver/demo-Gtk.c +++ b/driver/demo-Gtk.c @@ -1557,7 +1557,7 @@ flush_dialog_changes_and_save (state *s) # define TEXT(FIELD,NAME) \ w = name_to_widget (s, (NAME)); \ - (FIELD) = (char *) gtk_entry_get_text (GTK_ENTRY (w)) + (FIELD) = (char *) g_strdup(gtk_entry_get_text (GTK_ENTRY (w))) MINUTES (&p2->timeout, "timeout_spinbutton"); MINUTES (&p2->cycle, "cycle_spinbutton");