In the dual-port DMA (as in 'F2/'F4/'F7 and as one type of DMA in 'H7), the Transfer Complete flag (in DMA_LISR/DMA_HISR) indicates, whether all transfers of a stream (i.e. the number of transfers set by user in given stream's NDTR register) has been completed. In the peripheral-to-memory direction, it also safely indicates all memory-side transfers to be completed (as in this case, zero NDTR does not indicate that).
However, Transfer Complete flag is also set, if the given stream is disabled, either as a consequence of a Transfer Fault, or consequence of explicit stream disabling by software, through clearing the strem's CR.EN flag. In the latter case, the Transfer Complete flag indicates the complete disable of stream, including - in the peripheral-to-memory direction - FIFO being flushed and all memory-side transfers to be finished - and this happens simultaneously with CR.EN starting to read back zero.
If interrupt for this flag is enabled, it will be invoked, too.
This behaviour is completely documented in the RM; nevertheless, it is somewhat surprising.