blob: 5cecf868df4076c2ff2b29291acb34d6be0f064a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
--- src/downloads.c.orig Sat May 26 23:20:32 2001
+++ src/downloads.c Wed Dec 12 16:27:46 2001
@@ -241,7 +241,8 @@
d->last_update = time((time_t *) NULL);
- d->remove_msg = reason;
+ if (reason != NULL)
+ d->remove_msg = g_strdup(reason);
if (IS_DOWNLOAD_VISIBLE(d)) gui_update_download(d, TRUE);
@@ -521,6 +522,7 @@
g_free(d->path);
g_free(d->file_name);
+ g_free(d->remove_msg);
g_free(d);
}
--- src/gnutella.h.orig Wed Dec 12 16:43:41 2001
+++ src/gnutella.h Wed Dec 12 16:43:53 2001
@@ -274,7 +274,7 @@
guint32 timeout_delay;
guint restart_timer_id;
- const gchar *remove_msg;
+ gchar *remove_msg;
guint32 ip;
guint16 port;
|