Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zathura-pdf-poppler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwmt
zathura-pdf-poppler
Commits
1415b49d
Commit
1415b49d
authored
May 02, 2017
by
Sebastian Ramacher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid function pointer cast
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
7936e0d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
attachments.c
attachments.c
+1
-2
image.c
image.c
+5
-4
No files found.
attachments.c
View file @
1415b49d
...
...
@@ -23,8 +23,7 @@ pdf_document_attachments_get(zathura_document_t* document, void* data, zathura_e
return
NULL
;
}
girara_list_t
*
res
=
girara_sorted_list_new2
((
girara_compare_function_t
)
g_strcmp0
,
(
girara_free_function_t
)
g_free
);
girara_list_t
*
res
=
girara_sorted_list_new2
((
girara_compare_function_t
)
g_strcmp0
,
g_free
);
if
(
res
==
NULL
)
{
if
(
error
!=
NULL
)
{
*
error
=
ZATHURA_ERROR_OUT_OF_MEMORY
;
...
...
image.c
View file @
1415b49d
...
...
@@ -3,7 +3,7 @@
#include "plugin.h"
#include "utils.h"
static
void
pdf_zathura_image_free
(
zathura_image_t
*
image
);
static
void
pdf_zathura_image_free
(
void
*
image
);
girara_list_t
*
pdf_page_images_get
(
zathura_page_t
*
page
,
void
*
data
,
zathura_error_t
*
error
)
...
...
@@ -35,7 +35,7 @@ pdf_page_images_get(zathura_page_t* page, void* data, zathura_error_t* error)
goto
error_free
;
}
girara_list_set_free_function
(
list
,
(
girara_free_function_t
)
pdf_zathura_image_free
);
girara_list_set_free_function
(
list
,
pdf_zathura_image_free
);
for
(
GList
*
image
=
image_mapping
;
image
!=
NULL
;
image
=
g_list_next
(
image
))
{
zathura_image_t
*
zathura_image
=
g_malloc0
(
sizeof
(
zathura_image_t
));
...
...
@@ -106,12 +106,13 @@ error_ret:
}
static
void
pdf_zathura_image_free
(
zathura_image_t
*
image
)
pdf_zathura_image_free
(
void
*
data
)
{
if
(
image
==
NULL
)
{
if
(
data
==
NULL
)
{
return
;
}
zathura_image_t
*
image
=
data
;
if
(
image
->
data
!=
NULL
)
{
g_free
(
image
->
data
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment