diff options
| -rw-r--r-- | BUGS | 2 | ||||
| -rw-r--r-- | CHANGELOG | 3 | ||||
| -rwxr-xr-x | loadbars.pl | 3 |
3 files changed, 6 insertions, 2 deletions
@@ -1 +1 @@ -Segfault on quit (it's because of the fonts) +No known bugs @@ -1,3 +1,6 @@ +Fr 5. Aug 21:41:13 CEST 2011 +* Fixed a segfault bug on SDL::Font using threads + Fr 22. Apr 13:08:08 CEST 2011 * Released v0.1.2.1 diff --git a/loadbars.pl b/loadbars.pl index 5dbc72f..cfbd0b6 100755 --- a/loadbars.pl +++ b/loadbars.pl @@ -56,7 +56,6 @@ use constant { NULL => 0, MSG_TOGGLE_TXT => 1, MSG_SET_FACTOR => 3, - FONT => SDL::Font->new('font.png'), BLACK => SDL::Color->new(-r => 0x00, -g => 0x00, -b => 0x00), BLUE => SDL::Color->new(-r => 0x00, -g => 0x00, -b => 0xff), GREEN => SDL::Color->new(-r => 0x00, -g => 0x90, -b => 0x00), @@ -243,6 +242,8 @@ sub thr_display_stats () { wait_for_stats; + SDL::Font->new('font.png')->use(); + my $num_stats = keys %CPUSTATS; my $factor = $CONF{factor}; |
