Always generate Drop for reference counted types
For some reason, Drop implementations were not generated for non-instanciable
classes. This caused memory leaks in some cases like the InputEvent argument
for the _input and _unhandled_input events. Removing this condition should fix
the problem.
@@ -159,9 +159,6 @@ fn generate_class_bindings(
if class.is_refcounted() {
generate_reference_clone(output_trait_impls, class)?;
- }
-
- if class.is_refcounted() && class.instanciable {
generate_drop(output_trait_impls, class)?;
}
