projects
/
dana
/
openbox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
more using g_slice_new() instead of g_new()
[dana/openbox.git]
/
obt
/
mainloop.c
diff --git
a/obt/mainloop.c
b/obt/mainloop.c
index
c0b9bb5
..
ecdd7f7
100644
(file)
--- a/
obt/mainloop.c
+++ b/
obt/mainloop.c
@@
-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
);
}
}