this version of tremor requires a nil check on close_func
https://svn.xiph.org/trunk/Tremor/vorbisfile.c
#include <QtGui/QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}