projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb57ccc
)
Fixed potential memory leak.
author
Daniel Carl
<danielcarl@gmx.de>
Sat, 21 Jun 2014 13:13:34 +0000
(15:13 +0200)
committer
Daniel Carl
<danielcarl@gmx.de>
Sat, 21 Jun 2014 13:13:34 +0000
(15:13 +0200)
src/js.c
patch
|
blob
|
history
diff --git
a/src/js.c
b/src/js.c
index
74d025e
..
3766ff8
100644
(file)
--- a/
src/js.c
+++ b/
src/js.c
@@
-30,10
+30,9
@@
static gboolean evaluate_string(JSContextRef ctx, const char *script,
gboolean js_eval_file(WebKitWebFrame *frame, const char *file)
{
char *js = NULL, *value = NULL;
- GError *error = NULL;
if (g_file_test(file, G_FILE_TEST_IS_REGULAR)
- && g_file_get_contents(file, &js, NULL,
&error
)
+ && g_file_get_contents(file, &js, NULL,
NULL
)
) {
gboolean success = js_eval(frame, js, file, &value);
if (!success) {