diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-05-30 17:03:33 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-05-30 17:03:33 +0000 |
| commit | 6f8cef248e1467595a932707eb9a9c53af2e8839 (patch) | |
| tree | 14beaef0e6253ab3657b59a90231d2788806307a /src/screen_analyze.c | |
| parent | 13cb3930e9989aba57f0301a821f64ceed29af20 (diff) | |
- opravene memory leaky pomocou vlagrindu
- sietovy protokol je navrhnuty tal aby client odsiselal info o tom, ze obdrzal spravu
git-svn-id: http://opensvn.csie.org/tuxanci_ng@57 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/screen_analyze.c')
| -rw-r--r-- | src/screen_analyze.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/screen_analyze.c b/src/screen_analyze.c index 6cb92a1..c223677 100644 --- a/src/screen_analyze.c +++ b/src/screen_analyze.c @@ -108,18 +108,24 @@ void addAnalyze(char *name, int score) void endAnalyze() { - analyze_t *this; int i; for( i = 0 ; i < listAnalyze->count ; i++ ) { + analyze_t *this; + char *str; + this = (analyze_t *)(listAnalyze->list[i]); addList(listWidgetLabelName, newWidgetLabel(this->name, 100, 200 + 20*i, WIDGET_LABEL_LEFT) ); - addList(listWidgetLabelScore, newWidgetLabel(getString(this->score), + str = getString(this->score); + + addList(listWidgetLabelScore, newWidgetLabel(str, WINDOW_SIZE_X - 100, 200 + 20*i, WIDGET_LABEL_RIGHT) ); + + free(str); } } @@ -148,5 +154,7 @@ void quitScreenAnalyze() destroyListItem(listWidgetLabelName, destroyWidgetLabel); destroyListItem(listWidgetLabelScore, destroyWidgetLabel); destroyListItem(listAnalyze, destroyAnalyze); + + destroyWidgetButton(button_ok); } |