X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmouse.c;fp=openbox%2Fmouse.c;h=a7601f69112cf5f2d9b6469dd469245e8860683b;hb=d179d6428ae585a3b8a13479bfe4586e41de2ff9;hp=ee14935417acf4430b2a40924c7cda53d26f0be9;hpb=d45af3cb45f35ba639efac15675ed10b3515a7f0;p=chaz%2Fopenbox diff --git a/openbox/mouse.c b/openbox/mouse.c index ee149354..a7601f69 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -155,7 +155,7 @@ void mouse_unbind_all(void) actions_act_unref(jt->data); g_slist_free(b->actions[j]); } - g_free(b); + g_slice_free(ObMouseBinding, b); } g_slist_free(bound_contexts[i]); bound_contexts[i] = NULL; @@ -390,7 +390,7 @@ gboolean mouse_bind(const gchar *buttonstr, const gchar *contextstr, } /* add the binding */ - b = g_new0(ObMouseBinding, 1); + b = g_slice_new0(ObMouseBinding); b->state = state; b->button = button; b->actions[mact] = g_slist_append(NULL, action);