fixed segfault

git-svn-id: http://tint2.googlecode.com/svn/trunk@597 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77 2010-11-13 23:48:36 +00:00
parent d94e2a1790
commit 240c1dc416

View file

@ -63,11 +63,11 @@ void cleanup_taskbarname()
Panel *panel;
Taskbar *tskbar;
if (taskbarname_font_desc) pango_font_description_free(taskbarname_font_desc);
for (i=0 ; i < nb_panel ; i++) {
panel = &panel1[i];
for (j=0 ; j < panel->nb_desktop ; j++) {
tskbar = &panel->taskbar[j];
if (taskbarname_font_desc) pango_font_description_free(taskbarname_font_desc);
if (tskbar->bar_name.name) g_free(tskbar->bar_name.name);
free_area (&tskbar->bar_name.area);
for (k=0; k<TASKBAR_STATE_COUNT; ++k) {