Kouhei Sutou
null+****@clear*****
Mon Feb 18 23:52:00 JST 2013
Kouhei Sutou 2013-02-18 23:52:00 +0900 (Mon, 18 Feb 2013) New Revision: d5908b5c4bc8c54d2f0097a679d7658f50c60eeb https://github.com/groonga/groonga/commit/d5908b5c4bc8c54d2f0097a679d7658f50c60eeb Log: Close pat cursor in opened function Modified files: lib/geo.c Modified: lib/geo.c (+1 -2) =================================================================== --- lib/geo.c 2013-02-18 23:48:40 +0900 (c8f6062) +++ lib/geo.c 2013-02-18 23:52:00 +0900 (d1fccbb) @@ -622,7 +622,6 @@ grn_geo_table_sort_by_distance(grn_ctx *ctx, entries, pc, e, accessorp, base_point, &d_far, &diff_bit); - grn_pat_cursor_close(ctx, pc); if (diff_bit > 0) { n = grn_geo_table_sort_collect_points(ctx, table, index, pat, entries, n, e, accessorp, @@ -701,13 +700,13 @@ grn_geo_table_sort(grn_ctx *ctx, grn_obj *table, int offset, int limit, grn_ii_cursor_close(ctx, ic); } } - grn_pat_cursor_close(ctx, pc); } else { grn_geo_point *base_point = (grn_geo_point *)GRN_BULK_HEAD(arg); i = grn_geo_table_sort_by_distance(ctx, table, index, pat, pc, accessorp, base_point, offset, limit, result); } + grn_pat_cursor_close(ctx, pc); } } return i; -------------- next part -------------- HTML����������������������������...Download