WPrefs: Fix crash due to wtokenfree() memory leak fix
commit2706f7217ca6812e3341220697f455fa2e47119e
authorPedro Martelletto <pedro@ambientworks.net>
Fri, 17 Aug 2007 17:43:25 +0000 (17 10:43 -0700)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 22 Aug 2009 18:51:47 +0000 (22 20:51 +0200)
tree7a419c06ac895dd96cf8bb8bcbbcfb5dcb930681
parente522ca734d0559acee95f1521ca85e56ee7855b5
WPrefs: Fix crash due to wtokenfree() memory leak fix

After the fix to avoid a memory leak in wtokenfree(), WPrefs crashes
when opening the 'Applications Menu Definition' dialogue.

The problem is that WPrefs code relied on the fact that the first token
in the array would not be free'd by wtokenfree(), a misbehaviour which
is correctly addressed with this patch.

Retrieved-from: http://www.mail-archive.com/ports@openbsd.org/msg12731.html

[crmafra: small changes in the commit log from the webpage]
WPrefs.app/Menu.c