diff --git a/src/runtime/c/pgf.cxx b/src/runtime/c/pgf.cxx index 58bc513f2..3f4c477d6 100644 --- a/src/runtime/c/pgf.cxx +++ b/src/runtime/c/pgf.cxx @@ -131,7 +131,7 @@ PgfPGF *pgf_read_ngf(const char *fpath, PgfExn* err) if (pgf != NULL) { delete pgf; if (is_new) - remove(ngf_path); + remove(fpath); } return NULL;