{
GError *error = NULL;
GdkPixbuf *pixbuf = NULL;
- http* http_loader = NULL;
- http_loader = new http();
+ http* http_loader = new http();
GInputStream *image = http_loader->load_url(url, &error);
if (error || !image) {
}
theend:
- if (http_loader) {
- delete http_loader;
- }
+ delete http_loader;
return pixbuf;
}