aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2012-06-15 22:49:26 +0800
committerDan Vrátil <dvratil@redhat.com>2012-06-18 19:42:39 +0800
commit88a372b27e655eaaa27e7b806a1adc360b1583b6 (patch)
treeddefa0742eee8d25137ee4d1e911e2e94565aa37 /widgets/misc
parent0c2a0824be34b35528b261220d6703b33f5d868c (diff)
downloadgsoc2013-evolution-88a372b27e655eaaa27e7b806a1adc360b1583b6.tar.gz
gsoc2013-evolution-88a372b27e655eaaa27e7b806a1adc360b1583b6.tar.zst
gsoc2013-evolution-88a372b27e655eaaa27e7b806a1adc360b1583b6.zip
Fix some memory leaks
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-web-view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c
index 956f721eed..f3728dbd5d 100644
--- a/widgets/misc/e-web-view.c
+++ b/widgets/misc/e-web-view.c
@@ -937,6 +937,8 @@ web_view_button_press_event (GtkWidget *widget,
break;
}
}
+
+ g_object_unref (test);
}
if (event != NULL && event->button != 3)
@@ -1062,6 +1064,7 @@ web_view_extract_uri (EWebView *web_view,
WEBKIT_WEB_VIEW (web_view), event);
g_object_get (result, "context", &context, "link-uri", &uri, NULL);
+ g_object_unref (result);
if (context & WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK)
return uri;