1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-28 01:12:30 +01:00

Fixed return of WMGetUDStringForKey to be only a reference, not an allocated

string.
This commit is contained in:
dan
1999-05-26 01:55:54 +00:00
parent df7998e9e1
commit 6e97e4cae5
3 changed files with 6 additions and 1 deletions

View File

@@ -35,6 +35,8 @@ Changes since version 0.53.0:
- fixed a mem leak in superfluous mode caused by the ghost icon. - fixed a mem leak in superfluous mode caused by the ghost icon.
- added possibility to set omnipresent icons in Clip. See NEWS. - added possibility to set omnipresent icons in Clip. See NEWS.
- replace xde support drop on dock with xdnd. - replace xde support drop on dock with xdnd.
- more elegant text entries in Clip's menu, regarding single/multiple
selected icons.
Changes since version 0.52.0: Changes since version 0.52.0:

View File

@@ -28,6 +28,9 @@ changes since wmaker 0.53.0:
- added WMTabView - added WMTabView
- added WMGetColorPanelColor(WMColorPanel *panel) - added WMGetColorPanelColor(WMColorPanel *panel)
- made WMGetUDStringForKey() to only return a reference to the string, not a
wstrdup()'ed copy. DO NOT FREE IT ANYMORE!
changes since wmaker 0.52.0: changes since wmaker 0.52.0:
............................ ............................

View File

@@ -369,7 +369,7 @@ WMGetUDStringForKey(WMUserDefaults *database, char *defaultName)
if (!PLIsString(val)) if (!PLIsString(val))
return NULL; return NULL;
return wstrdup(PLGetString(val)); return PLGetString(val);
} }