Commit: fix ispell segfault!

From: Marc Maurer (j.m.maurer@student.utwente.nl)
Date: Tue Aug 26 2003 - 09:00:42 EDT

  • Next message: Kenneth J. Davis: "Re: MinGW build of 1.99.5 available"

    This fix solves the segfault caused when trying to use the ispell spell
    checker and the requested dictionary was not available... FINALLY...
    This one has been reported over and over and over and over again.

    Bye,
      Marc

    Note to the ispell initiated: One small issue remains. When linit fails
    for whatever reason, no resources will be freed. In the old situation,
    it would simply crash (hey, that's also a solution :). The new situation
    does not crash, but the resources remain allocated. IMO, this new
    situation is clearly preferred. linit shouldn't fail in the 1st place.

    Note to dom: your m_initialized guess was right, as allways

    Note to dom^2: i commited the fix to enchant as well (dunno if it
    compiles). Please don't kill me.

    ABI:

    Fix segfault when the requested dictionary couldn't be found.

    CVS:
    ----------------------------------------------------------------------
    CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
    CVS:
    CVS: Committing in .
    CVS:
    CVS: Modified Files:
    CVS: ./src/other/spell/xp/ispell_checker.h
    CVS: ./src/other/spell/xp/ispell_checker.cpp
    CVS: ./src/other/spell/xp/lookup.cpp
    CVS:
    ----------------------------------------------------------------------

    ECHANT:

    Fix segfault when the requested dictionary couldn't be found.

    CVS:
    ----------------------------------------------------------------------
    CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
    CVS:
    CVS: Committing in .
    CVS:
    CVS: Modified Files:
    CVS: ./src/ispell/lookup.cpp ./src/ispell/ispell_checker.cpp
    CVS: ./src/ispell/ispell_checker.h
    CVS:
    ----------------------------------------------------------------------

    -- 
    Marc Maurer <j.m.maurer@student.utwente.nl>
    


    This archive was generated by hypermail 2.1.4 : Tue Aug 26 2003 - 09:08:36 EDT