浏览代码

Use pj_free() for strings allocated by PROJ

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38873 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 15 年之前
父节点
当前提交
a9b5cb26d2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/proj/get_proj.c

+ 2 - 2
lib/proj/get_proj.c

@@ -400,7 +400,7 @@ int pj_print_proj_params(struct pj_info *iproj, struct pj_info *oproj)
 	if (str != NULL) {
 	    fprintf(stderr, "%s: %s\n", _("Input Projection Parameters"),
 		    str);
-	    G_free(str);
+	    pj_free(str);
 	    fprintf(stderr, "%s: %.16g\n", _("Input Unit Factor"),
 		    iproj->meters);
 	}
@@ -413,7 +413,7 @@ int pj_print_proj_params(struct pj_info *iproj, struct pj_info *oproj)
 	if (str != NULL) {
 	    fprintf(stderr, "%s: %s\n", _("Output Projection Parameters"),
 		    str);
-	    G_free(str);
+	    pj_free(str);
 	    fprintf(stderr, "%s: %.16g\n", _("Output Unit Factor"),
 		    oproj->meters);
 	}