[Xfce-bugs] [XFCE 0000124]: xfdesktop crashes if there is no menu file available and user wants to see the popup menu

xfce-bugs at xfce.org xfce-bugs at xfce.org
Tue Feb 24 20:03:58 CET 2004


The following bug has been CLOSED
=======================================================================
http://bugs.xfce.org/view_bug_page.php?f_id=0000124
=======================================================================
Reporter:                   tkoskine
Handler:                    kelnos
=======================================================================
Project:                    XFCE
Bug ID:                     0000124
Category:                   other
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     closed
=======================================================================
Date Submitted:             2004-02-24 18:50 GMT
Last Modified:              2004-02-24 19:03 GMT
=======================================================================
Summary:                    xfdesktop crashes if there is no menu file available and user wants to see the popup menu
Description: 
xfdesktop crashes if there is no menu file available
and create_desktop_menu() function is called twice.

The source code location: xfdesktop-4.0.3/src/menu.c
/* returns the menu widget */
static GtkWidget *create_desktop_menu(void)
{
    ...
    /* Still no luck? Something got broken! */
    if (stat(filename, &st) < 0)
    {
        if (filename)
        {
            g_free(filename);
        }
        return NULL;
    }
    ...
}
=======================================================================

-----------------------------------------------------------------------
 kelnos - 2004-02-24 19:03 GMT 
-----------------------------------------------------------------------
fixed in CVS, both HEAD and xfce_4_0 branch.  thanks for the report and
fix!



More information about the Xfce-bugs mailing list