Simple GDK app segfaults for unknown reason



Hi List,

I've just written a simple GDK application that basically converts an
input JPEG image to a BMP using a Pixbuf.

Unfortunately it segfaults.

----8<----

#include <gtk/gtk.h>

int main(int argc, char *argv[])
{
    gdk_init(&argc, &argv);

    GError **error = NULL;
    GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file("input.jpg", error);
    gdk_pixbuf_save(pixbuf, "output.bmp", "bmp", error);

    return 0;
}

----8<----

Could someone here explain why does it segfault?

-- 
Laci

    Blog: http://monda.hu/~laci/blog
    Home: http://mondalaci.objectis.net





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]