mirror of
https://github.com/jtheoof/swappy.git
synced 2024-08-17 02:30:47 +03:00
fix(pixbuf): possibly fix core dump
Not really sure, would need to investigate a bit more.
This commit is contained in:
parent
7a9be5d2a6
commit
8a82e796bb
@ -51,7 +51,7 @@ void pixbuf_save_to_stdout(GdkPixbuf *pixbuf) {
|
||||
|
||||
out = g_unix_output_stream_new(STDOUT_FILENO, TRUE);
|
||||
|
||||
gdk_pixbuf_save_to_stream(pixbuf, out, "png", NULL, &error);
|
||||
gdk_pixbuf_save_to_stream(pixbuf, out, "png", NULL, &error, NULL);
|
||||
|
||||
if (error != NULL) {
|
||||
g_warning("unable to save surface to stdout: %s", error->message);
|
||||
|
Loading…
Reference in New Issue
Block a user