Commit 0c43b5ee authored by Geoffrey Métais's avatar Geoffrey Métais

Fix leak in media object conversion

parent 92fd4e23
......@@ -94,6 +94,8 @@ mediaToMediaWrapper(JNIEnv* env, fields *fields, medialibrary::MediaPtr const& m
env->DeleteLocalRef(mrl);
if (thumbnail != NULL)
env->DeleteLocalRef(thumbnail);
if (filename != NULL)
env->DeleteLocalRef(filename);
return item;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment