]> Dogcows Code - chaz/openbox/blobdiff - obt/mainloop.c
more using g_slice_new() instead of g_new()
[chaz/openbox] / obt / mainloop.c
index c0b9bb597e92922d0a5823ea25144e7a847fd096..ecdd7f7f535fdfafeb265884dbb79cf5ca32dbfb 100644 (file)
@@ -155,7 +155,7 @@ ObtMainLoop *obt_main_loop_new(void)
 {
     ObtMainLoop *loop;
 
-    loop = g_new0(ObtMainLoop, 1);
+    loop = g_slice_new0(ObtMainLoop);
     loop->ref = 1;
     FD_ZERO(&loop->fd_set);
     loop->fd_x = -1;
@@ -249,7 +249,7 @@ void obt_main_loop_unref(ObtMainLoop *loop)
             }
         }
 
-        obt_free0(loop, ObtMainLoop, 1);
+        g_slice_free(ObtMainLoop, loop);
     }
 }
 
This page took 0.021513 seconds and 4 git commands to generate.