summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-09-10 14:10:10 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-09-10 14:10:49 +0200
commit5cd851ea25bca17ef551658c9cb9a1e098d0da06 (patch)
treef7a98005d48c3683e583869ce7fe4a1f598f40df /src/lib/eolian
parentb880a1c7e8b92f1a8fc08ee26e93d879a36de7d0 (diff)
eolian: consider @by_ref marked elements ownable
Diffstat (limited to 'src/lib/eolian')
-rw-r--r--src/lib/eolian/database_validate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c
index aa0976600f..9890bc5c83 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -230,8 +230,8 @@ _validate_by_ref(Eolian_Type *tp, Eina_Bool by_ref, Eina_Bool move)
230 if (tp->btype == EOLIAN_TYPE_BUILTIN_FUTURE) 230 if (tp->btype == EOLIAN_TYPE_BUILTIN_FUTURE)
231 return EINA_TRUE; 231 return EINA_TRUE;
232 232
233 /* not marked @move; just validate */ 233 /* not marked @move, or marked @by_ref; just validate */
234 if (!move) 234 if (!move || by_ref)
235 return EINA_TRUE; 235 return EINA_TRUE;
236 236
237 /* marked @move, not pointer-like or otherwise ownable, error */ 237 /* marked @move, not pointer-like or otherwise ownable, error */