component library has the changes merged by Martin_fr, however I'm getting a crash in Linux when I trigger my callback.
Deos that mean you use 4.x with some code merged from git main branch?
Or 4.99 aka the git main branch?
I did a lot of work on SynEdit in 4.99. And afaik some that was related to how such addons (like wordwrap) are handled. But I can't recall all the details.
So, if in doubt, make sure you use 4.99.
With 4.99, I checked what the IDE (in ide/SourceSynEditor) does.
And it simple destroys the line wrap, and that will take care of its own removal.
Add:
FWrapView := TLazSynEditLineWrapPlugin.Create(Self);
Remove:
FreeAndNil(FWrapView);
If you want to temp remove it, then you need to check what all happens in destroy.