Commit 84f1ca12 authored by Felix Riemann's avatar Felix Riemann Committed by Christian Persch

Add forgotten return value in error case

Fix GCC warnings when using the -Wreturn-type parameter.

Bug #672725.
parent 37ca8719
......@@ -936,7 +936,7 @@ rsvg_cairo_surface_from_pixbuf (const GdkPixbuf *pixbuf)
surface = cairo_image_surface_create (format, width, height);
if (cairo_surface_status (surface) != CAIRO_STATUS_SUCCESS) {
cairo_surface_destroy (surface);
return;
return NULL;
}
cairo_pixels = cairo_image_surface_get_data (surface);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment