Index: src/xvmc/i965_xvmc.c =================================================================== --- src/xvmc/i965_xvmc.c.orig +++ src/xvmc/i965_xvmc.c @@ -219,6 +219,7 @@ static int free_object(struct media_stat for (i = 0; i < MAX_SURFACE_NUM; i++) FREE_ONE_BO(s->binding_table.surface_states[i].bo); FREE_ONE_BO(s->indirect_data.bo); + return 0; } static int alloc_object(struct media_state *s) Index: src/xvmc/xvmc_vld.c =================================================================== --- src/xvmc/xvmc_vld.c.orig +++ src/xvmc/xvmc_vld.c @@ -370,6 +370,7 @@ static int free_object(struct media_stat FREE_ONE_BO(s->mb_data.bo); FREE_ONE_BO(s->cs_object.bo); FREE_ONE_BO(s->vld_state.bo); + return 0; } static int alloc_object(struct media_state *s)