]> Dogcows Code - chaz/openbox/blobdiff - openbox/frame.c
more using g_slice_new() instead of g_new()
[chaz/openbox] / openbox / frame.c
index a6bfaefeeb566b642ba1920dd3da1ef19c814a8b..f6304f5d1340651006fe202dc3e453c715519ce1 100644 (file)
@@ -89,7 +89,7 @@ ObFrame *frame_new(ObClient *client)
     ObFrame *self;
     Visual *visual;
 
-    self = g_new0(ObFrame, 1);
+    self = g_slice_new0(ObFrame);
     self->client = client;
 
     visual = check_32bit_client(client);
@@ -229,7 +229,7 @@ void frame_free(ObFrame *self)
     if (self->colormap)
         XFreeColormap(obt_display, self->colormap);
 
-    g_free(self);
+    g_slice_free(ObFrame, self);
 }
 
 void frame_show(ObFrame *self)
This page took 0.020363 seconds and 4 git commands to generate.