summaryrefslogtreecommitdiff
path: root/src/trg-main-window.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-05-02 10:19:27 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-05-02 10:19:27 +0000
commit4707e5f94ebcb702cc90af38dcd6487d603899b9 (patch)
tree68f4c09a4661ab7d4499168b4ae832d7e295354d /src/trg-main-window.c
parent4783c442c1811a8004bebaff9eea326fdd731ac9 (diff)
fix small list memory leak when a torrent is removed in active-only mode
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r--src/trg-main-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index e3eb0fd..4ee9d8b 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -368,7 +368,7 @@ destroy_window(GtkWidget * w G_GNUC_UNUSED, gpointer data G_GNUC_UNUSED)
gtk_main_quit();
}
-static void open_props_cb(GtkWidget * w, gpointer data)
+static void open_props_cb(GtkWidget * w G_GNUC_UNUSED, gpointer data)
{
TrgMainWindowPrivate *priv = TRG_MAIN_WINDOW_GET_PRIVATE(data);
TrgTorrentPropsDialog *dialog =
@@ -898,6 +898,7 @@ TRANSMISSION_MIN_SUPPORTED, version);
/*
* The callback for a torrent-get response.
*/
+
static void
on_torrent_get(JsonObject * response, int mode, int status, gpointer data)
{