summaryrefslogtreecommitdiffstats
path: root/src/server/GraphImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-12-21 21:10:54 +0000
committerDavid Robillard <d@drobilla.net>2012-12-21 21:10:54 +0000
commitd22f6503008f738b5cf7dcb58212e1be503a54f4 (patch)
tree5bdb88048cbb88b3e542c476f39366c27cde7b8e /src/server/GraphImpl.cpp
parent6b62e037f2f828ec6bf9c7e0066db32cfb54abef (diff)
downloadingen-d22f6503008f738b5cf7dcb58212e1be503a54f4.tar.gz
ingen-d22f6503008f738b5cf7dcb58212e1be503a54f4.tar.bz2
ingen-d22f6503008f738b5cf7dcb58212e1be503a54f4.zip
Fix memory leaks.
Add missing library dependencies. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4880 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/GraphImpl.cpp')
-rw-r--r--src/server/GraphImpl.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/server/GraphImpl.cpp b/src/server/GraphImpl.cpp
index 81c69b46..d5cf646c 100644
--- a/src/server/GraphImpl.cpp
+++ b/src/server/GraphImpl.cpp
@@ -19,6 +19,7 @@
#include "ingen/Log.hpp"
#include "ingen/URIs.hpp"
#include "ingen/World.hpp"
+#include "raul/Maid.hpp"
#include "BlockImpl.hpp"
#include "BufferFactory.hpp"
@@ -228,6 +229,15 @@ GraphImpl::has_edge(const PortImpl* tail, const PortImpl* dst_port) const
return (i != _edges.end());
}
+void
+GraphImpl::set_compiled_graph(CompiledGraph* cg)
+{
+ if (_compiled_graph && _compiled_graph != cg) {
+ _engine.maid()->dispose(_compiled_graph);
+ }
+ _compiled_graph = cg;
+}
+
uint32_t
GraphImpl::num_ports_non_rt() const
{