dont clean up nulls

This commit is contained in:
Dana Jansens 2003-03-19 04:22:29 +00:00
parent 83e86fa0b6
commit e4fe6da48c

View file

@ -78,6 +78,7 @@ static void foreach_clear(GQuark key, gpointer data, gpointer user_data)
MouseBinding *b = it->data;
for (i = 0; i < NUM_MOUSEACTION; ++i)
if (b->action[i] != NULL)
action_free(b->action[i]);
g_free(b);
}
@ -328,7 +329,6 @@ static gboolean mbind(char *buttonstr, char *contextstr, MouseAction mact,
b->state = state;
b->button = button;
for (i = 0; i < NUM_MOUSEACTION; ++i)
if (i != mact)
b->action[i] = NULL;
b->action[mact] = action;
g_datalist_id_set_data(&bound_contexts, context,