Commit a3d371d1 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Simplify

parent 88c7176a
......@@ -3,7 +3,15 @@
#include "plugin.h"
#include "utils.h"
static void pdf_zathura_image_free(void* image);
static void
pdf_zathura_image_free(void* data)
{
zathura_image_t* image = data;
if (image != NULL) {
g_free(image->data);
}
g_free(image);
}
girara_list_t*
pdf_page_images_get(zathura_page_t* page, void* data, zathura_error_t* error)
......@@ -104,18 +112,3 @@ error_ret:
return NULL;
}
static void
pdf_zathura_image_free(void* data)
{
if (data == NULL) {
return;
}
zathura_image_t* image = data;
if (image->data != NULL) {
g_free(image->data);
}
g_free(image);
}
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