summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-12 15:00:39 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-12 15:00:39 +0200
commit43fba707c11c853875168d6255333d6c510f131f (patch)
treefc1629949882d5f27b26ee65f54833ed5c93f878 /bridges
parent0f0c0d6cda1d236186f4e88c733371b02ea26b6c (diff)
Coverity 441351, 441352: JNI_type_info's real dtor is "destroy"
...as it needs a JNIEnv passed in, so cannot use the dtor directly. Maybe this code clarification helps silence Coverity's false resource leak reports. Change-Id: I32e043e3fa9097263302a6c639e6815512410f4e
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/jni_uno/jni_info.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/bridges/source/jni_uno/jni_info.h b/bridges/source/jni_uno/jni_info.h
index c92cd334dbe9..10263b202abf 100644
--- a/bridges/source/jni_uno/jni_info.h
+++ b/bridges/source/jni_uno/jni_info.h
@@ -82,6 +82,9 @@ struct JNI_interface_type_info : public JNI_type_info
virtual void destroy( JNIEnv * jni_env ) SAL_OVERRIDE;
explicit JNI_interface_type_info(
JNI_context const & jni, typelib_TypeDescription * td );
+
+private:
+ virtual ~JNI_interface_type_info() {}
};
struct JNI_compound_type_info : public JNI_type_info
@@ -95,6 +98,9 @@ struct JNI_compound_type_info : public JNI_type_info
virtual void destroy( JNIEnv * jni_env ) SAL_OVERRIDE;
explicit JNI_compound_type_info(
JNI_context const & jni, typelib_TypeDescription * td );
+
+private:
+ virtual ~JNI_compound_type_info() {}
};
struct JNI_type_info_holder