Browse Source

Carla: Fix Lv2WorldClass leaks

tags/v0.9.0
falkTX 13 years ago
parent
commit
7dab4bf7f5
2 changed files with 6 additions and 6 deletions
  1. +5
    -5
      c++/carla-includes/carla_lv2.h
  2. +1
    -1
      c++/carla-lilv/lilv-0.14.4/lilv/lilvmm.hpp

+ 5
- 5
c++/carla-includes/carla_lv2.h View File

@@ -307,11 +307,11 @@ public:


void init() void init()
{ {
if (needInit)
{
needInit = false;
load_all();
}
if (! needInit)
return;
load_all();
needInit = false;
} }


private: private:


+ 1
- 1
c++/carla-lilv/lilv-0.14.4/lilv/lilvmm.hpp View File

@@ -60,7 +60,7 @@ uri_to_path(const char* uri) {
#endif #endif


struct Node { struct Node {
inline Node(const LilvNode* node) : me(lilv_node_duplicate(node)) {}
inline Node(const LilvNode* node) : me(lilv_node_duplicate(node)) { lilv_node_free((LilvNode*)node); }
inline Node(const Node& copy) : me(lilv_node_duplicate(copy.me)) {} inline Node(const Node& copy) : me(lilv_node_duplicate(copy.me)) {}


inline ~Node() { lilv_node_free(me); } inline ~Node() { lilv_node_free(me); }


Loading…
Cancel
Save