protected override void Dispose(bool disposing) { if (ctx == null) { return; } FF.sws_freeContext(ctx); ctx = null; }