Преглед на файлове

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