1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-01 11:32:34 +01:00

- Fixed small memory leak in the WINGs' font panel code.

- Fixed call to qsort in WMSortArray.
- Fixed a memleak in the WINGs' file panel.
This commit is contained in:
dan
2003-04-02 11:37:04 +00:00
parent 5f79f1bcde
commit f058fdf72c
36 changed files with 54 additions and 78 deletions

View File

@@ -3,7 +3,6 @@ aclocal.m4
configure config.log config.cache config.guess config.status config.sub configure config.log config.cache config.guess config.status config.sub
libtool ltconfig ltmain.sh libtool ltconfig ltmain.sh
autom4te.cache autom4te.cache
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt
update update
WindowMaker*.tar.gz WindowMaker*.tar.gz

View File

@@ -68,6 +68,8 @@ Changes since version 0.80.2:
- Fixed bug with scrolling menus introduced by the xinerama patch. - Fixed bug with scrolling menus introduced by the xinerama patch.
- Fixed bug that could cause SIGSEGV by accessing beyond the end of text in - Fixed bug that could cause SIGSEGV by accessing beyond the end of text in
a WINGs textfield widget. a WINGs textfield widget.
- Fixed small memory leak in WINGs' font panel code.
- Fixed memory leak in WINGs' file panel code.
Changes since version 0.80.1: Changes since version 0.80.1:

View File

@@ -1,5 +1,4 @@
Makefile Makefile.in Makefile Makefile.in
get-wings-flags get-wutil-flags get-wings-flags get-wutil-flags
.libs .libs
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -55,6 +55,9 @@ Changes since wmaker 0.80.1:
- Added WMSetTableViewHasHorizontalScroller() - Added WMSetTableViewHasHorizontalScroller()
- Fixed bug that could cause SIGSEGV by accessing beyond the end of text in - Fixed bug that could cause SIGSEGV by accessing beyond the end of text in
a WINGs textfield widget. a WINGs textfield widget.
- Fixed small memory leak in the font panel code.
- Fixed call to qsort in WMSortArray.
- Fixed a memleak in the file panel.
Changes since wmaker 0.80.0: Changes since wmaker 0.80.0:

View File

@@ -1,3 +1,2 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,5 +1,4 @@
Makefile Makefile.in Makefile Makefile.in
connect server fontl puzzle UserTime.plist connect server fontl puzzle UserTime.plist
.libs .libs
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,5 +1,4 @@
Makefile Makefile.in Makefile Makefile.in
.libs .libs
test test
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,3 +1,2 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,5 +1,4 @@
Makefile Makefile.in Makefile Makefile.in
testtext testcolorpanel testmywidget wmfile wmquery wtest testtext testcolorpanel testmywidget wmfile wmquery wtest
.libs .libs
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -274,7 +274,9 @@ WMCountInArray(WMArray *array, void *item)
void void
WMSortArray(WMArray *array, WMCompareDataProc *comparer) WMSortArray(WMArray *array, WMCompareDataProc *comparer)
{ {
qsort(array->items, array->itemCount, sizeof(void*), comparer); if (array->itemCount > 1) { /* Don't sort empty or single element arrays */
qsort(array->items, array->itemCount, sizeof(void*), comparer);
}
} }

View File

@@ -1,5 +1,4 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt
*.pot *.pot
*.mo *.mo

View File

@@ -548,12 +548,15 @@ listDirectoryOnColumn(WMFilePanel *panel, int column, char *path)
DIR *dir; DIR *dir;
struct stat stat_buf; struct stat stat_buf;
char pbuf[PATH_MAX+16]; char pbuf[PATH_MAX+16];
char *name;
assert(column >= 0); assert(column >= 0);
assert(path != NULL); assert(path != NULL);
/* put directory name in the title */ /* put directory name in the title */
WMSetBrowserColumnTitle(bPtr, column, get_name_from_path(path)); name = get_name_from_path(path);
WMSetBrowserColumnTitle(bPtr, column, name);
wfree(name);
dir = opendir(path); dir = opendir(path);

View File

@@ -831,15 +831,17 @@ getSelectedFont(FontPanel *panel, char buffer[], int bufsize)
size = WMGetTextFieldText(panel->sizT); size = WMGetTextFieldText(panel->sizT);
snprintf(buffer, bufsize, "-%s-%s-%s-%s-%s-%s-%s-*-*-*-*-*-%s-%s", snprintf(buffer, bufsize, "-%s-%s-%s-%s-%s-%s-%s-*-*-*-*-*-%s-%s",
family->foundry, family->foundry,
family->name, family->name,
face->weight, face->weight,
face->slant, face->slant,
face->setWidth, face->setWidth,
face->addStyle, face->addStyle,
size, size,
family->registry, family->registry,
family->encoding); family->encoding);
wfree(size);
} }

View File

@@ -1,5 +1,4 @@
Makefile Makefile.in Makefile Makefile.in
WPrefs WPrefs
.libs .libs
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,5 +1,4 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt
*.pot *.pot
*.mo *.mo

View File

@@ -1,3 +1,2 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,3 +1,2 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,3 +1,2 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,3 +1,2 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,4 +1,3 @@
Makefile Makefile.in Makefile Makefile.in
WMState WMWindowAttributes WindowMaker WMRootMenu WMState WMWindowAttributes WindowMaker WMRootMenu
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,4 +1,3 @@
Makefile Makefile.in Makefile Makefile.in
Default.iconset Default.iconset
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,3 +1,2 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,3 +1,2 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,3 +1,2 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,3 +1,2 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,4 +1,3 @@
Makefile Makefile.in Makefile Makefile.in
WindowMaker.spec WindowMaker.spec
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,3 +1,2 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,3 +1,2 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,8 +1,2 @@
Makefile Makefile.in .psrc .inslog2 tca.map tca.log pchdir *.rpt
aclocal.m4
configure config.log config.cache config.guess config.status config.sub
libtool ltconfig ltmain.sh
.psrc .inslog2 tca.map tca.log
*.rpt
update update-autoconf
libwmfun*.tar.gz libwmfun*.tar.gz

View File

@@ -2,5 +2,4 @@ Makefile Makefile.in
*.lo *.la *.lo *.la
stamp-h stamp-h.in config.h config.h.in stamp-h stamp-h.in config.h config.h.in
.libs .libs
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,5 +1,4 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt
*.pot *.pot
*.mo *.mo

View File

@@ -2,5 +2,4 @@ Makefile Makefile.in
config.h config.h.in wconfig.h stamp-h stamp-h1 stamp-h.in config.h config.h.in wconfig.h stamp-h stamp-h1 stamp-h.in
.libs .libs
wmaker wmaker
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,5 +1,4 @@
Makefile Makefile.in Makefile Makefile.in
wtest wtest
.libs .libs
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -2,5 +2,4 @@ Makefile Makefile.in
wmsetup wmagnify wxcopy wxpaste wdwrite getstyle setstyle seticons geticonset wmsetup wmagnify wxcopy wxpaste wdwrite getstyle setstyle seticons geticonset
wmsetbg wmaker.inst wdread wmchlocale wmsetbg wmaker.inst wdread wmchlocale
.libs .libs
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -1,3 +1,2 @@
Makefile Makefile.in Makefile Makefile.in
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt

View File

@@ -2,5 +2,4 @@ Makefile Makefile.in
*.lo *.la *.lo *.la
view testgrad testdraw testrot get-wraster-flags view testgrad testdraw testrot get-wraster-flags
.libs .libs
.psrc .inslog2 tca.map tca.log .psrc .inslog2 tca.map tca.log pchdir *.rpt
*.rpt