Skip to content
  • Raphael Kubo da Costa's avatar
    cliinterface: Do not leak the pattern cache across different instances. · 586f4a25
    Raphael Kubo da Costa authored
    Since the pattern cache was a method-static variable, it was shared
    among all CliInterface instances created during Ark's lifetime, which
    meant that the same pattern cache ended up being used if one opened a
    zip archive and then a rar one.
    
    Fix that by making the pattern cache an actual member variable, so
    each CliInterface instance has its own.
    
    Reported by:	Torsten Rahn <tackat@kde.org>
    586f4a25