projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: bt2: adjust reference counting of value objects
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
component.py
diff --git
a/src/bindings/python/bt2/bt2/component.py
b/src/bindings/python/bt2/bt2/component.py
index afd7514a7b856101f7361c05a3c42f12eeb58ffa..9834fa8cc565dc4dc6f25595ab31a2358e6786ad 100644
(file)
--- a/
src/bindings/python/bt2/bt2/component.py
+++ b/
src/bindings/python/bt2/bt2/component.py
@@
-527,12
+527,15
@@
class _UserComponentType(type):
results = bt2.create_value(results)
if results is None:
results = bt2.create_value(results)
if results is None:
- results_
addr = int(native_bt.value_null)
+ results_
ptr = native_bt.value_null
else:
# return new reference
else:
# return new reference
- results_
addr = int(results._release())
+ results_
ptr = results._ptr
- return results_addr
+ # We return a new reference.
+ bt2.value._Value._get_ref(results_ptr)
+
+ return int(results_ptr)
def _query(cls, query_executor, obj, params, log_level):
raise NotImplementedError
def _query(cls, query_executor, obj, params, log_level):
raise NotImplementedError
This page took
0.023434 seconds
and
4
git commands to generate.