summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-29 10:41:50 -0400
committerDavid Robillard <d@drobilla.net>2016-10-29 10:41:50 -0400
commitca4b7eaaa70a617f086fad29f0fdf12f0ad6a03e (patch)
tree581c5939b1c6bbdc994477b5173b9d0f8a6b9ff8 /src
parenteb345180d80bbb26608d56a8ca55f1129c0bbef5 (diff)
downloadingen-ca4b7eaaa70a617f086fad29f0fdf12f0ad6a03e.tar.gz
ingen-ca4b7eaaa70a617f086fad29f0fdf12f0ad6a03e.tar.bz2
ingen-ca4b7eaaa70a617f086fad29f0fdf12f0ad6a03e.zip
Fix minor memory issues
Diffstat (limited to 'src')
-rw-r--r--src/Parser.cpp2
-rw-r--r--src/gui/App.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/Parser.cpp b/src/Parser.cpp
index 61495c9f..765f9bd4 100644
--- a/src/Parser.cpp
+++ b/src/Parser.cpp
@@ -295,7 +295,7 @@ parse_block(Ingen::World* world,
return boost::optional<Raul::Path>();
}
- const uint8_t* type_uri = (const uint8_t*)prototype.to_string().c_str();
+ const uint8_t* type_uri = (const uint8_t*)prototype.to_c_string();
if (!serd_uri_string_has_scheme(type_uri) ||
!strncmp((const char*)type_uri, "file:", 5)) {
// Prototype is a file, subgraph
diff --git a/src/gui/App.cpp b/src/gui/App.cpp
index a3055c91..d77779ef 100644
--- a/src/gui/App.cpp
+++ b/src/gui/App.cpp
@@ -79,6 +79,7 @@ App::App(Ingen::World* world)
, _n_threads(1)
, _max_event_load(0.0f)
, _min_run_load(0.0f)
+ , _mean_run_load(0.0f)
, _max_run_load(0.0f)
, _enable_signal(true)
, _requested_plugins(false)