<div dir="ltr"><div>Sorry it got lost.  I just pushed it.<br></div>-- Jason Ekstrand<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 23, 2014 at 2:00 AM, Vivek Ellur <span dir="ltr"><<a href="mailto:vivek.ellur@samsung.com" target="_blank">vivek.ellur@samsung.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I had submitted this patch last month. It was reviewed but still not merged.<br>
I also checked the patch with the latest code, its working fine. Do I need<br>
to make any further changes?<br>
<br>
Regards,<br>
Vivek Ellur<br>
<div class="HOEnZb"><div class="h5"><br>
> -----Original Message-----<br>
> From: wayland-devel [mailto:<a href="mailto:wayland-devel-">wayland-devel-</a><br>
> <a href="mailto:bounces@lists.freedesktop.org">bounces@lists.freedesktop.org</a>] On Behalf Of Pekka Paalanen<br>
> Sent: Friday, May 16, 2014 11:48 AM<br>
> To: vivek<br>
> Cc: <a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
> Subject: Re: [PATCH weston] Clients: Fix memleak issues in various clients<br>
of<br>
> weston<br>
><br>
> On Thu, 15 May 2014 18:58:16 +0530<br>
> vivek <<a href="mailto:vivek.ellur@samsung.com">vivek.ellur@samsung.com</a>> wrote:<br>
><br>
> > In many clients of weston, Display was not being destroyed so added it.<br>
> > Also destroy windows, widgets which were not being destroyed.<br>
> ><br>
> > Signed-off-by: vivek <<a href="mailto:vivek.ellur@samsung.com">vivek.ellur@samsung.com</a>><br>
> > ---<br>
> >  clients/cliptest.c    |   13 ++++++++++---<br>
> >  clients/dnd.c         |   11 +++++++++++<br>
> >  clients/editor.c      |    3 +++<br>
> >  clients/flower.c      |    4 ++++<br>
> >  clients/fullscreen.c  |    4 ++++<br>
> >  clients/gears.c       |   14 +++++++++++++-<br>
> >  clients/image.c       |    2 ++<br>
> >  clients/scaler.c      |    3 +++<br>
> >  clients/smoke.c       |    4 ++++<br>
> >  clients/stacking.c    |    3 +++<br>
> >  clients/transformed.c |    3 +++<br>
> >  11 files changed, 60 insertions(+), 4 deletions(-)<br>
> ><br>
> > diff --git a/clients/cliptest.c b/clients/cliptest.c index<br>
> > 3cee343..a1928f4 100644<br>
> > --- a/clients/cliptest.c<br>
> > +++ b/clients/cliptest.c<br>
> > @@ -879,6 +879,14 @@ benchmark(void)<br>
> >     return 0;<br>
> >  }<br>
> ><br>
> > +static void<br>
> > +cliptest_destroy(struct cliptest *cliptest) {<br>
</div></div><div class="HOEnZb"><div class="h5">> > +   widget_destroy(cliptest->widget);<br>
> > +   window_destroy(cliptest->window);<br>
> > +   free(cliptest);<br>
> > +}<br>
> > +<br>
> >  int<br>
> >  main(int argc, char *argv[])<br>
> >  {<br>
> > @@ -897,9 +905,8 @@ main(int argc, char *argv[])<br>
> >     cliptest = cliptest_create(d);<br>
> >     display_run(d);<br>
> ><br>
> > -   widget_destroy(cliptest->widget);<br>
> > -   window_destroy(cliptest->window);<br>
> > -   free(cliptest);<br>
> > +   cliptest_destroy(cliptest);<br>
> > +   display_destroy(d);<br>
> ><br>
> >     return 0;<br>
> >  }<br>
> > diff --git a/clients/dnd.c b/clients/dnd.c index a463d6f..620cfff<br>
> > 100644<br>
> > --- a/clients/dnd.c<br>
> > +++ b/clients/dnd.c<br>
> > @@ -639,6 +639,14 @@ dnd_create(struct display *display)<br>
> >     return dnd;<br>
> >  }<br>
> ><br>
> > +static void<br>
> > +dnd_destroy(struct dnd *dnd)<br>
> > +{<br>
> > +   widget_destroy(dnd->widget);<br>
> > +   window_destroy(dnd->window);<br>
> > +   free(dnd);<br>
> > +}<br>
> > +<br>
> >  int<br>
> >  main(int argc, char *argv[])<br>
> >  {<br>
> > @@ -660,5 +668,8 @@ main(int argc, char *argv[])<br>
> ><br>
> >     display_run(d);<br>
> ><br>
> > +   dnd_destroy(dnd);<br>
> > +   display_destroy(d);<br>
> > +<br>
> >     return 0;<br>
> >  }<br>
> > diff --git a/clients/editor.c b/clients/editor.c index<br>
> > f3f6141..08d1203 100644<br>
> > --- a/clients/editor.c<br>
> > +++ b/clients/editor.c<br>
> > @@ -1382,6 +1382,9 @@ main(int argc, char *argv[])<br>
> ><br>
> >     text_entry_destroy(editor.entry);<br>
> >     text_entry_destroy(editor.editor);<br>
> > +   widget_destroy(editor.widget);<br>
> > +   window_destroy(editor.window);<br>
> > +   display_destroy(editor.display);<br>
> ><br>
> >     return 0;<br>
> >  }<br>
> > diff --git a/clients/flower.c b/clients/flower.c index<br>
> > 8769445..624525c 100644<br>
> > --- a/clients/flower.c<br>
> > +++ b/clients/flower.c<br>
> > @@ -195,5 +195,9 @@ int main(int argc, char *argv[])<br>
> ><br>
> >     display_run(d);<br>
> ><br>
> > +   widget_destroy(flower.widget);<br>
> > +   window_destroy(flower.window);<br>
> > +   display_destroy(d);<br>
> > +<br>
> >     return 0;<br>
> >  }<br>
> > diff --git a/clients/fullscreen.c b/clients/fullscreen.c index<br>
> > 28efb15..5c5dd2b 100644<br>
> > --- a/clients/fullscreen.c<br>
> > +++ b/clients/fullscreen.c<br>
> > @@ -562,5 +562,9 @@ int main(int argc, char *argv[])<br>
> ><br>
> >     display_run(d);<br>
> ><br>
> > +   widget_destroy(fullscreen.widget);<br>
> > +   window_destroy(fullscreen.window);<br>
> > +   display_destroy(d);<br>
> > +<br>
> >     return 0;<br>
> >  }<br>
> > diff --git a/clients/gears.c b/clients/gears.c index 93a86b4..95f0bb2<br>
> > 100644<br>
> > --- a/clients/gears.c<br>
> > +++ b/clients/gears.c<br>
> > @@ -469,17 +469,29 @@ gears_create(struct display *display)<br>
> >     return gears;<br>
> >  }<br>
> ><br>
> > +static void<br>
> > +gears_destroy(struct gears *gears)<br>
> > +{<br>
> > +   widget_destroy(gears->widget);<br>
> > +   window_destroy(gears->window);<br>
> > +   free(gears);<br>
> > +}<br>
> > +<br>
> >  int main(int argc, char *argv[])<br>
> >  {<br>
> >     struct display *d;<br>
> > +   struct gears *gears;<br>
> ><br>
> >     d = display_create(&argc, argv);<br>
> >     if (d == NULL) {<br>
> >             fprintf(stderr, "failed to create display: %m\n");<br>
> >             return -1;<br>
> >     }<br>
> > -   gears_create(d);<br>
> > +   gears = gears_create(d);<br>
> >     display_run(d);<br>
> ><br>
> > +   gears_destroy(gears);<br>
> > +   display_destroy(d);<br>
> > +<br>
> >     return 0;<br>
> >  }<br>
> > diff --git a/clients/image.c b/clients/image.c index 054979d..112b93d<br>
> > 100644<br>
> > --- a/clients/image.c<br>
> > +++ b/clients/image.c<br>
> > @@ -424,5 +424,7 @@ main(int argc, char *argv[])<br>
> >     if (image_counter > 0)<br>
> >             display_run(d);<br>
> ><br>
> > +   display_destroy(d);<br>
> > +<br>
> >     return 0;<br>
> >  }<br>
> > diff --git a/clients/scaler.c b/clients/scaler.c index<br>
> > f94e714..3939022 100644<br>
> > --- a/clients/scaler.c<br>
> > +++ b/clients/scaler.c<br>
> > @@ -321,6 +321,9 @@ main(int argc, char *argv[])<br>
> ><br>
> >     display_run(d);<br>
> ><br>
> > +   widget_destroy(box.widget);<br>
> >     window_destroy(box.window);<br>
> > +   display_destroy(d);<br>
> > +<br>
> >     return 0;<br>
> >  }<br>
> > diff --git a/clients/smoke.c b/clients/smoke.c index 5d976af..65b6e03<br>
> > 100644<br>
> > --- a/clients/smoke.c<br>
> > +++ b/clients/smoke.c<br>
> > @@ -329,5 +329,9 @@ int main(int argc, char *argv[])<br>
> ><br>
> >     display_run(d);<br>
> ><br>
> > +   widget_destroy(smoke.widget);<br>
> > +   window_destroy(smoke.window);<br>
> > +   display_destroy(d);<br>
> > +<br>
> >     return 0;<br>
> >  }<br>
> > diff --git a/clients/stacking.c b/clients/stacking.c index<br>
> > f51a476..5aaf469 100644<br>
> > --- a/clients/stacking.c<br>
> > +++ b/clients/stacking.c<br>
> > @@ -304,5 +304,8 @@ main(int argc, char *argv[])<br>
> ><br>
> >     display_run(stacking.display);<br>
> ><br>
> > +   window_destroy(stacking.root_window);<br>
> > +   display_destroy(stacking.display);<br>
> > +<br>
> >     return 0;<br>
> >  }<br>
> > diff --git a/clients/transformed.c b/clients/transformed.c index<br>
> > 4b1cb05..880a0a9 100644<br>
> > --- a/clients/transformed.c<br>
> > +++ b/clients/transformed.c<br>
> > @@ -290,6 +290,9 @@ int main(int argc, char *argv[])<br>
> >                            transformed.width, transformed.height);<br>
> ><br>
> >     display_run(d);<br>
> > +   widget_destroy(transformed.widget);<br>
> > +   window_destroy(transformed.window);<br>
> > +   display_destroy(d);<br>
> ><br>
> >     return 0;<br>
> >  }<br>
><br>
> Yeah, looks fine to me.<br>
><br>
><br>
> Thanks,<br>
> pq<br>
> _______________________________________________<br>
> wayland-devel mailing list<br>
> <a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</div></div></blockquote></div><br></div>