Re: [PATCH weston] compositor.c: do not leak option strings

2014-09-05 Thread Ryo Munakata
On Fri, 5 Sep 2014 13:56:23 +0300 Pekka Paalanen wrote: > > + if (!backend) { > > + if (getenv("WAYLAND_DISPLAY") || > > getenv("WAYLAND_SOCKET")) > > + backend = strdup("wayland-backend.so"); > > + else if (getenv("DISPLAY"

Re: [PATCH weston] compositor.c: do not leak option strings

2014-09-05 Thread Pekka Paalanen
On Tue, 2 Sep 2014 00:14:45 +0900 Ryo Munakata wrote: > Also some refactoring to achieve this. > > Signed-off-by: Ryo Munakata > --- > src/compositor.c | 52 +++- > 1 file changed, 27 insertions(+), 25 deletions(-) > > diff --git a/src/composit

[PATCH weston] compositor.c: do not leak option strings

2014-09-01 Thread Ryo Munakata
Also some refactoring to achieve this. Signed-off-by: Ryo Munakata --- src/compositor.c | 52 +++- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 8705950..6adef94 100644 --- a/src/composito