From: Thierry Lorthiois Date: Sat, 13 Nov 2010 23:48:36 +0000 (+0000) Subject: fixed segfault X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=739bae01a6c3a999984347afb33d5b336556a4b9;p=chaz%2Ftint2 fixed segfault --- diff --git a/src/taskbar/taskbarname.c b/src/taskbar/taskbarname.c index f9a8648..ff75893 100644 --- a/src/taskbar/taskbarname.c +++ b/src/taskbar/taskbarname.c @@ -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