comparison 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
comparison
equal deleted inserted replaced
1883:0fecaedb83fa 1884:71780cf68aa2
800 str = dw_container_query_start(container, DW_CRA_SELECTED); 800 str = dw_container_query_start(container, DW_CRA_SELECTED);
801 while(str) 801 while(str)
802 { 802 {
803 sprintf(buf,"Selected: %s\r\n", str); 803 sprintf(buf,"Selected: %s\r\n", str);
804 mle_point = dw_mle_import( container_mle, buf, mle_point); 804 mle_point = dw_mle_import( container_mle, buf, mle_point);
805 dw_free(str);
805 str = dw_container_query_next(container, DW_CRA_SELECTED); 806 str = dw_container_query_next(container, DW_CRA_SELECTED);
806 } 807 }
807 /* Make the last inserted point the cursor location */ 808 /* Make the last inserted point the cursor location */
808 dw_mle_set_cursor(container_mle, mle_point); 809 dw_mle_set_cursor(container_mle, mle_point);
809 /* set the details of item 0 to new data */ 810 /* set the details of item 0 to new data */