Magellan Linux

Contents of /trunk/newt/patches/newt-0.51.6-newttextbox-memoryleak.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (show annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years ago) by niro
File size: 391 byte(s)
-import

1 diff -urN newt-0.51.6.orig/textbox.c newt-0.51.6/textbox.c
2 --- newt-0.51.6.orig/textbox.c 2003-01-03 12:54:45.000000000 -0800
3 +++ newt-0.51.6/textbox.c 2005-08-12 19:31:03.000000000 -0700
4 @@ -418,6 +418,7 @@
5 int i;
6 struct textbox * tb = co->data;
7
8 + if (tb->sb) tb->sb->ops->destroy(tb->sb);
9 for (i = 0; i < tb->numLines; i++)
10 free(tb->lines[i]);
11 free(tb->lines);