Skip to content

Commit 3049def

Browse files
committed
typos/bugs
1 parent d330feb commit 3049def

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/dimension.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ void mapcache_sqlite_dimension_connection_destructor(void *conn_, apr_pool_t *po
341341
}
342342
free(conn->prepared_statements);
343343
sqlite3_close(conn->handle);
344+
free(conn);
344345
}
345346

346347
static mapcache_pooled_connection* _sqlite_time_dimension_get_conn(mapcache_context *ctx, mapcache_timedimension_sqlite *dim) {
@@ -414,7 +415,7 @@ static int _mapcache_dimension_sqlite_validate(mapcache_context *ctx, mapcache_d
414415

415416
cleanup:
416417
if(conn->prepared_statements[0]) {
417-
sqlite3_finalize(conn->prepared_statements[0]);
418+
sqlite3_reset(conn->prepared_statements[0]);
418419
}
419420
_sqlite_dimension_release_conn(ctx,pc);
420421

lib/service_wms.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,8 @@ void _mapcache_service_wms_parse_request(mapcache_context *ctx, mapcache_service
669669
}
670670
if((value = (char*)apr_table_get(params,dim_name)) == NULL) {
671671
if(strcasecmp(dimension->name,"TIME") && strcasecmp(dimension->name,"ELEVATION")) {
672-
/* also test for the dimension without the DIM_ prefix if the latter was not found in hte KVP params */
672+
/* also test for the dimension without the DIM_ prefix if the latter was not found in the KVP params */
673+
dim_name = dimension->name;
673674
value = (char*)apr_table_get(params,dimension->name);
674675
}
675676
}

0 commit comments

Comments
 (0)