Revision 3192 libsylph/news.c

View differences:

news.c
181 181
{
182 182
	if (REMOTE_FOLDER(folder)->remove_cache_on_destroy) {
183 183
		gchar *dir;
184
		gchar *server;
184 185

  
185 186
		dir = folder_get_path(folder);
186 187
		if (is_dir_exist(dir))
187 188
			remove_dir_recursive(dir);
188 189
		g_free(dir);
189 190

  
191
		server = uriencode_for_filename(folder->account->nntp_server);
190 192
		dir = g_strconcat(get_news_cache_dir(), G_DIR_SEPARATOR_S,
191
				  folder->account->nntp_server, NULL);
193
				  server, NULL);
192 194
		if (is_dir_exist(dir))
193 195
			g_rmdir(dir);
194 196
		g_free(dir);
197
		g_free(server);
195 198
	}
196 199

  
197 200
	folder_remote_folder_destroy(REMOTE_FOLDER(folder));

Also available in: Unified diff