summaryrefslogtreecommitdiffhomepage
path: root/opentrack-api
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-30 23:24:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-10-30 23:24:27 +0100
commit50a101da6278f40e2c3a13234078b4404a99d718 (patch)
treef8d1c6b519dd8588a08e9ebb3559bbd45d283abf /opentrack-api
parente7f264c09a2d1f4f1f6c6a3144fd5993e72a408d (diff)
plug in memleak in api
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'opentrack-api')
-rw-r--r--opentrack-api/context.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/opentrack-api/context.cpp b/opentrack-api/context.cpp
index 84089c43..eb5b8a58 100644
--- a/opentrack-api/context.cpp
+++ b/opentrack-api/context.cpp
@@ -46,6 +46,8 @@ static QList<opentrack_meta> list_files(QString filter)
delete lib;
continue;
}
+ /* TODO perhaps return full name and somesuch */
+ delete meta;
QString prefix(LIB_PREFIX + filter);
QString suffix("." SONAME);
if (str.size() > prefix.size() + suffix.size() && str.startsWith(prefix) && str.endsWith(suffix))