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

fixed a memleak in the font panel in WINGs

This commit is contained in:
dan
2002-11-29 02:47:33 +00:00
parent 1fa3937001
commit 5ad557c6c8
5 changed files with 18 additions and 33 deletions

View File

@@ -44,6 +44,7 @@ Changes since wmaker 0.80.1:
- Fixed a bug with empty frame titles (Alexey Voinov <voins@voins.program.ru>)
- Added WMGetWidgetBackgroundColor()
- Code cleanup in wtext.c
- Fixed a memory leak in wfontpanel.c
Changes since wmaker 0.80.0:

View File

@@ -1304,41 +1304,26 @@ main(int argc, char **argv)
testTextField(scr);
testText(scr);
testFontPanel(scr);
#if 0
testText(scr);
testDragAndDrop(scr);
testColorPanel(scr);
testScrollView(scr);
testTabView(scr);
testBox(scr);
testText(scr);
testList(scr);
testProgressIndicator(scr);
testColorWell(scr);
testDragAndDrop(scr);
testFontPanel(scr);
testButton(scr);
testColorPanel(scr);
testColorWell(scr);
testDragAndDrop(scr);
testFrame(scr);
testSplitView(scr);
testGradientButtons(scr);
testList(scr);
testOpenFilePanel(scr);
testSlider(scr);
testProgressIndicator(scr);
testPullDown(scr);
testScrollView(scr);
testSlider(scr);
testSplitView(scr);
testTabView(scr);
#endif
/*
* The main event loop.

View File

@@ -573,7 +573,6 @@ addTypefaceToFamily(Family *family, char fontFields[NUM_FIELDS][256])
}
/*
* families (same family name) (Hashtable of family -> array)
* registries (same family but different registries)
@@ -695,13 +694,12 @@ static void
listFamilies(WMScreen *scr, WMFontPanel *panel)
{
char **fontList;
int count;
int i;
WMHashTable *families = WMCreateHashTable(WMStringPointerHashCallbacks);
WMHashTable *families;
char fields[NUM_FIELDS][256];
WMHashEnumerator enumer;
WMArray *array;
int i, count;
fontList = XListFonts(scr->display, ALL_FONTS_MASK, MAX_FONTS_TO_RETRIEVE,
&count);
if (!fontList) {
@@ -710,6 +708,8 @@ listFamilies(WMScreen *scr, WMFontPanel *panel)
return;
}
families = WMCreateHashTable(WMStringPointerHashCallbacks);
for (i = 0; i < count; i++) {
int fname_len;
@@ -757,7 +757,6 @@ listFamilies(WMScreen *scr, WMFontPanel *panel)
item->clientData = fam;
}
/* Isn't this going to memleak since items weren't released? --Dan */
WMFreeArray(array);
}
WMSortListItems(panel->famLs);

View File

@@ -1070,7 +1070,7 @@ WMSetWidgetBackgroundColor(WMWidget *w, WMColor *color)
WMColor*
WMGetWidgetBackgroundColor(WMWidget *w)
{
// shoul retain?
// should retain?
return W_VIEW(w)->backColor;
}

View File

@@ -15,7 +15,7 @@ AC_INIT(src/WindowMaker.h)
AM_INIT_AUTOMAKE(WindowMaker, 0.81.2)
AM_INIT_AUTOMAKE(WindowMaker, 0.81.0)
AC_PROG_LIBTOOL