X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain.cc;h=ab82aa2ee60a5e35950ee2480bf92301376fcc24;hb=c4ab1fa2768863098306862047bdb1116bd62a24;hp=f87b011559856e035e5d1af181e7be5bc0c57eeb;hpb=50e3f6daf627d72a500b07f053cb34f713f0c650;p=winnie diff --git a/src/main.cc b/src/main.cc index f87b011..ab82aa2 100644 --- a/src/main.cc +++ b/src/main.cc @@ -11,7 +11,10 @@ static void cleanup(); int main() { - winnie_init(); + if(!winnie_init()) { + exit(1); + } + atexit(cleanup); Window *win1 = new Window;