Fix use of uninitialized memory.

Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
	memory.
This commit is contained in:
Owen Taylor 2001-03-28 16:58:16 +00:00 • committed by Owen Taylor
commit 0031ee8091
8 changed files with 36 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Sun Mar 25 15:51:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
memory.
Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from

View file

@ -1,3 +1,8 @@
Sun Mar 25 15:51:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
memory.
Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from

View file

@ -1,3 +1,8 @@
Sun Mar 25 15:51:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
memory.
Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from

View file

@ -1,3 +1,8 @@
Sun Mar 25 15:51:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
memory.
Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from

View file

@ -1,3 +1,8 @@
Sun Mar 25 15:51:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
memory.
Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from

View file

@ -1,3 +1,8 @@
Sun Mar 25 15:51:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
memory.
Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from

View file

@ -1,3 +1,8 @@
Sun Mar 25 15:51:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
memory.
Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from

View file

@ -93,15 +93,13 @@ gtk_settings_init (GtkSettings *settings)
guint i;
g_datalist_init (&settings->queued_settings);
settings->property_values = NULL;
object_list = g_slist_prepend (object_list, settings);
/* build up property array for all yet existing properties and queue
* notification for them (at least notification for internal properties
* will instantly be caught)
*/
settings->property_values = g_renew (GValue, settings->property_values, class_n_properties);
settings->property_values[class_n_properties - 1].g_type = 0;
settings->property_values = g_new0 (GValue, class_n_properties);
for (i = 0; i < class_n_properties; i++)
{
GParamSpec *pspec = gobject_class->property_specs[i]; // FIXME: g_object_list_properties(this_class_type)