projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Document field-path.h (API)
[babeltrace.git]
/
include
/
babeltrace
/
ref-internal.h
diff --git
a/include/babeltrace/ref-internal.h
b/include/babeltrace/ref-internal.h
index 8578de97b2ec1808eded8e9887961c1e3e7f4644..cf1547da9615345df8977f5fd95c8d7fb4fe3a57 100644
(file)
--- a/
include/babeltrace/ref-internal.h
+++ b/
include/babeltrace/ref-internal.h
@@
-50,6
+50,11
@@
static inline
void bt_ref_get(struct bt_ref *ref)
{
assert(ref);
+
+ if (!ref->release) {
+ return;
+ }
+
ref->count++;
/* Overflow check. */
assert(ref->count);
This page took
0.023615 seconds
and
4
git commands to generate.