about summary refs log tree commit diff stats
path: root/xxxterm.c
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-01-12 02:21:04 +0000
committerMarco Peereboom <marco@conformal.com>2011-01-12 02:21:04 +0000
commit6ccd774b8e49cd7d135829c5ee37139e7ea7cb36 (patch)
tree388c9ad57d810f80b718c5ab51b309939e7e2cee /xxxterm.c
parentcf0ade83424209068b3f69f0a2f4e045a459f230 (diff)
downloadxombrero-6ccd774b8e49cd7d135829c5ee37139e7ea7cb36.tar.gz
fix a double unref
Diffstat (limited to 'xxxterm.c')
-rw-r--r--xxxterm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 02b74be..07388fd 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -4505,9 +4505,9 @@ favicon_download_status_changed_cb(WebKitDownload *download, GParamSpec *spec,
 	switch (status) {
 	case WEBKIT_DOWNLOAD_STATUS_FINISHED:
 		load_favicon(t);
-		/* FALLTHROUGH */
+		g_object_unref(t->icon_download);
+		break;
 	case WEBKIT_DOWNLOAD_STATUS_ERROR:
-		webkit_download_cancel(t->icon_download); /* just incase */
 	case WEBKIT_DOWNLOAD_STATUS_CANCELLED:
 		g_object_unref(t->icon_download);
 		break;