]> Dogcows Code - chaz/openbox/blobdiff - openbox/mouse.c
more using g_slice_new() instead of g_new()
[chaz/openbox] / openbox / mouse.c
index ee14935417acf4430b2a40924c7cda53d26f0be9..a7601f69112cf5f2d9b6469dd469245e8860683b 100644 (file)
@@ -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);
This page took 0.020628 seconds and 4 git commands to generate.