aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/ice40/worker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/ice40/worker.cc b/gui/ice40/worker.cc
index 5a8ff0e9..bd22f552 100644
--- a/gui/ice40/worker.cc
+++ b/gui/ice40/worker.cc
@@ -18,7 +18,7 @@ Worker::Worker(Context *_ctx) : ctx(_ctx)
void Worker::parsejson(const std::string &filename)
{
std::string fn = filename;
- std::istream *f = new std::ifstream(fn);
+ std::ifstream f(fn);
parse_json_file(f, fn, ctx);
if (!pack_design(ctx))