From 1b16601599cb413605c1671526de597b672512e0 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 20 Feb 2011 00:09:31 +0000 Subject: [PATCH] Fixed erroneous deletion of downloaded content --- po/de.po | 6 +++--- po/es.po | 6 +++--- po/fr.po | 6 +++--- po/it.po | 6 +++--- src/download.c | 2 ++ 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/po/de.po b/po/de.po index 1d63fa0..56d8cc2 100644 --- a/po/de.po +++ b/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Surfer 0.1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-02-19 14:37+0100\n" +"POT-Creation-Date: 2011-02-20 01:08+0100\n" "PO-Revision-Date: 2010-04-01 19:40+0200\n" "Last-Translator: Pierre Pronchery \n" "Language-Team: German\n" @@ -165,7 +165,7 @@ msgstr "Fehler " msgid "Complete" msgstr "" -#: ../src/download.c:538 ../src/download.c:670 +#: ../src/download.c:538 ../src/download.c:672 msgid "Downloading" msgstr "" @@ -189,7 +189,7 @@ msgstr "" msgid "Unknown error" msgstr "" -#: ../src/download.c:691 +#: ../src/download.c:693 msgid "" "Usage: download [-O output][-U user-agent] URL...\n" " -O\tFile to write document to\n" diff --git a/po/es.po b/po/es.po index af77777..e5f4954 100644 --- a/po/es.po +++ b/po/es.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Surfer 0.1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-02-19 14:37+0100\n" +"POT-Creation-Date: 2011-02-20 01:08+0100\n" "PO-Revision-Date: 2010-04-01 19:40+0200\n" "Last-Translator: Pierre Pronchery \n" "Language-Team: Spanish\n" @@ -165,7 +165,7 @@ msgstr "" msgid "Complete" msgstr "" -#: ../src/download.c:538 ../src/download.c:670 +#: ../src/download.c:538 ../src/download.c:672 msgid "Downloading" msgstr "" @@ -189,7 +189,7 @@ msgstr "" msgid "Unknown error" msgstr "" -#: ../src/download.c:691 +#: ../src/download.c:693 msgid "" "Usage: download [-O output][-U user-agent] URL...\n" " -O\tFile to write document to\n" diff --git a/po/fr.po b/po/fr.po index 6f8baff..3a38b3a 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Surfer 0.1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-02-19 14:37+0100\n" +"POT-Creation-Date: 2011-02-20 01:08+0100\n" "PO-Revision-Date: 2010-04-01 19:40+0200\n" "Last-Translator: Calimero \n" "Language-Team: French\n" @@ -167,7 +167,7 @@ msgstr "Erreur " msgid "Complete" msgstr "Terminé" -#: ../src/download.c:538 ../src/download.c:670 +#: ../src/download.c:538 ../src/download.c:672 msgid "Downloading" msgstr "Téléchargement" @@ -191,7 +191,7 @@ msgstr "Code " msgid "Unknown error" msgstr "Erreur inconnue" -#: ../src/download.c:691 +#: ../src/download.c:693 msgid "" "Usage: download [-O output][-U user-agent] URL...\n" " -O\tFile to write document to\n" diff --git a/po/it.po b/po/it.po index 514586b..88f6b04 100644 --- a/po/it.po +++ b/po/it.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Surfer 0.1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-02-19 14:37+0100\n" +"POT-Creation-Date: 2011-02-20 01:08+0100\n" "PO-Revision-Date: 2010-04-11 12:06+0200\n" "Last-Translator: Pierre Pronchery \n" "Language-Team: Italian\n" @@ -165,7 +165,7 @@ msgstr "" msgid "Complete" msgstr "" -#: ../src/download.c:538 ../src/download.c:670 +#: ../src/download.c:538 ../src/download.c:672 msgid "Downloading" msgstr "" @@ -189,7 +189,7 @@ msgstr "" msgid "Unknown error" msgstr "" -#: ../src/download.c:691 +#: ../src/download.c:693 msgid "" "Usage: download [-O output][-U user-agent] URL...\n" " -O\tFile to write document to\n" diff --git a/src/download.c b/src/download.c index 10565cb..ca8ff6f 100644 --- a/src/download.c +++ b/src/download.c @@ -664,6 +664,8 @@ static gboolean _download_on_timeout(gpointer data) GTK_STOCK_CLOSE); d->data_received = webkit_download_get_current_size( d->conn); + g_object_unref(d->conn); + d->conn = NULL; break; case WEBKIT_DOWNLOAD_STATUS_STARTED: gtk_label_set_text(GTK_LABEL(d->status),