From: Dana Jansens Date: Sun, 23 Mar 2003 21:15:49 +0000 (+0000) Subject: woops playing with the hash table left it in a half changed state here X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=12436b886a9824414440d0438a6da905ea610df5;p=chaz%2Fopenbox woops playing with the hash table left it in a half changed state here --- diff --git a/engines/openbox/openbox.c b/engines/openbox/openbox.c index 8979e8b4..f0f6eede 100644 --- a/engines/openbox/openbox.c +++ b/engines/openbox/openbox.c @@ -592,18 +592,18 @@ void frame_release_client(ObFrame *self, Client *client) } /* remove all the windows for the frame from the client_map */ - g_hash_table_remove(client_map, &self->frame.window); - g_hash_table_remove(client_map, &self->frame.plate); - g_hash_table_remove(client_map, &self->title); - g_hash_table_remove(client_map, &self->label); - g_hash_table_remove(client_map, &self->max); - g_hash_table_remove(client_map, &self->close); - g_hash_table_remove(client_map, &self->desk); - g_hash_table_remove(client_map, &self->icon); - g_hash_table_remove(client_map, &self->iconify); - g_hash_table_remove(client_map, &self->handle); - g_hash_table_remove(client_map, &self->lgrip); - g_hash_table_remove(client_map, &self->rgrip); + g_hash_table_remove(client_map, (gpointer)self->frame.window); + g_hash_table_remove(client_map, (gpointer)self->frame.plate); + g_hash_table_remove(client_map, (gpointer)self->title); + g_hash_table_remove(client_map, (gpointer)self->label); + g_hash_table_remove(client_map, (gpointer)self->max); + g_hash_table_remove(client_map, (gpointer)self->close); + g_hash_table_remove(client_map, (gpointer)self->desk); + g_hash_table_remove(client_map, (gpointer)self->icon); + g_hash_table_remove(client_map, (gpointer)self->iconify); + g_hash_table_remove(client_map, (gpointer)self->handle); + g_hash_table_remove(client_map, (gpointer)self->lgrip); + g_hash_table_remove(client_map, (gpointer)self->rgrip); frame_free(self); }