eolian: consider @by_ref marked elements ownable
authorDaniel Kolesa <d.kolesa@samsung.com>
Tue, 10 Sep 2019 12:10:10 +0000 (14:10 +0200)
committerYeongjong Lee <yj34.lee@samsung.com>
Mon, 16 Sep 2019 01:23:00 +0000 (10:23 +0900)
src/lib/eolian/database_validate.c

index aa09766..9890bc5 100644 (file)
@@ -230,8 +230,8 @@ _validate_by_ref(Eolian_Type *tp, Eina_Bool by_ref, Eina_Bool move)
    if (tp->btype == EOLIAN_TYPE_BUILTIN_FUTURE)
      return EINA_TRUE;
 
-   /* not marked @move; just validate */
-   if (!move)
+   /* not marked @move, or marked @by_ref; just validate */
+   if (!move || by_ref)
       return EINA_TRUE;
 
    /* marked @move, not pointer-like or otherwise ownable, error */