summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-24 15:45:22 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-24 20:41:34 +0100
commit670cfb14fcf03ba25221c630d5237750cca52acb (patch)
treee82759b250c53b667d0ba3da4911a6a788271c5b
parentd533bdbbac3531234854db99aa8ca885d49e96a4 (diff)
eo: do not check this here
as coverity points out, _obj_is_override is already dereferencing obj->opt so this was the wrong spot to check this. CID 1422014 CID 1422013 Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11579
-rw-r--r--src/lib/eo/eo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 63a73fae51..2bdf284f5f 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -1255,10 +1255,9 @@ _eo_free(_Eo_Object *obj, Eina_Bool manual_free EINA_UNUSED)
1255 } 1255 }
1256 } 1256 }
1257#endif 1257#endif
1258 if (_obj_is_override(obj)) 1258 if (obj->opt && _obj_is_override(obj))
1259 { 1259 {
1260 if (obj->opt) 1260 _vtable_free(obj->opt->vtable, &obj->klass->vtable);
1261 _vtable_free(obj->opt->vtable, &obj->klass->vtable);
1262 EO_OPTIONAL_COW_SET(obj, vtable, NULL); 1261 EO_OPTIONAL_COW_SET(obj, vtable, NULL);
1263 } 1262 }
1264 1263