GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 75f7f9ed authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Wrap setting freed instance memory to 0xaa in #ifdef G_ENABLE_DEBUG

Mon Mar 25 17:25:57 2002  Owen Taylor  <otaylor@redhat.com>

        * gtype.c (g_type_free_instance): Wrap setting freed instance
        memory to 0xaa in #ifdef G_ENABLE_DEBUG
parent 1543f95a
Mon Mar 25 17:25:57 2002 Owen Taylor <otaylor@redhat.com>
* gtype.c (g_type_free_instance): Wrap setting freed instance
memory to 0xaa in #ifdef G_ENABLE_DEBUG
Thu Mar 21 01:28:14 2002 Tim Janik <timj@gtk.org>
* gsignal.[hc]:
......
......@@ -1377,7 +1377,9 @@ g_type_free_instance (GTypeInstance *instance)
}
instance->g_class = NULL;
memset (instance, 0xaa, node->data->instance.instance_size); /* FIXME: debugging hack */
#ifdef G_ENABLE_DEBUG
memset (instance, 0xaa, node->data->instance.instance_size); /* debugging hack */
#endif
if (node->data->instance.n_preallocs)
{
G_WRITE_LOCK (&type_rw_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment