Mercurial > dwindows
diff dwtest.c @ 1884:71780cf68aa2
More container and tree changes on all platforms regarding memory.
This should fix GTK3 memory leaks I wasn't previously aware of...
but it will cause all platforms to leak memory if strings returned
from dw_container_query_start(), dw_container_query_next() and
dw_tree_get_title() are not freed with dw_free() when using version 3.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 28 Aug 2013 23:47:40 +0000 |
parents | 0fecaedb83fa |
children | 31179c5a3c5a |
line wrap: on
line diff
--- a/dwtest.c Thu Aug 15 18:51:56 2013 +0000 +++ b/dwtest.c Wed Aug 28 23:47:40 2013 +0000 @@ -802,6 +802,7 @@ { sprintf(buf,"Selected: %s\r\n", str); mle_point = dw_mle_import( container_mle, buf, mle_point); + dw_free(str); str = dw_container_query_next(container, DW_CRA_SELECTED); } /* Make the last inserted point the cursor location */