libidav/davqlparser.c

changeset 852
83fdf679df99
parent 816
839fefbdedc7
equal deleted inserted replaced
850:bbe2925eb590 852:83fdf679df99
1837 } 1837 }
1838 1838
1839 void dav_free_statement(DavQLStatement *stmt) { 1839 void dav_free_statement(DavQLStatement *stmt) {
1840 if(stmt->fields) { 1840 if(stmt->fields) {
1841 cxDefineDestructor(stmt->fields, dav_free_field); 1841 cxDefineDestructor(stmt->fields, dav_free_field);
1842 cxListDestroy(stmt->fields); 1842 cxListFree(stmt->fields);
1843 } 1843 }
1844 1844
1845 if (stmt->where) { 1845 if (stmt->where) {
1846 dav_free_expression(stmt->where); 1846 dav_free_expression(stmt->where);
1847 } 1847 }
1849 free(stmt->errormessage); 1849 free(stmt->errormessage);
1850 } 1850 }
1851 1851
1852 if(stmt->orderby) { 1852 if(stmt->orderby) {
1853 cxDefineDestructor(stmt->orderby, dav_free_order_criterion); 1853 cxDefineDestructor(stmt->orderby, dav_free_order_criterion);
1854 cxListDestroy(stmt->orderby); 1854 cxListFree(stmt->orderby);
1855 } 1855 }
1856 if(stmt->args) { 1856 if(stmt->args) {
1857 cxListDestroy(stmt->args); 1857 cxListFree(stmt->args);
1858 } 1858 }
1859 free(stmt); 1859 free(stmt);
1860 } 1860 }

mercurial