/* qerror_destroy_obj(): Free all memory allocated by a QError  */
static void qerror_destroy_obj(QObject *obj)
/* qerror_destroy_obj(): Free all memory allocated by a QError  */
static void qerror_destroy_obj(QObject *obj)
{
    QError *qerr;
    assert(obj != NULL);
    qerr = qobject_to_qerror(obj);
    g_free(qerr->err_msg);
    g_free(qerr);
}