diff options
Diffstat (limited to 'skypeweb/purple2compat')
-rw-r--r-- | skypeweb/purple2compat/http.c | 4 | ||||
-rw-r--r-- | skypeweb/purple2compat/internal.h | 34 | ||||
-rw-r--r-- | skypeweb/purple2compat/purple-socket.c | 4 |
3 files changed, 21 insertions, 21 deletions
diff --git a/skypeweb/purple2compat/http.c b/skypeweb/purple2compat/http.c index f3692ed..4da18c6 100644 --- a/skypeweb/purple2compat/http.c +++ b/skypeweb/purple2compat/http.c @@ -430,7 +430,7 @@ purple_http_gz_put(PurpleHttpGzStream *gzs, const gchar *buf, gsize len) purple_debug_error("http", "Decompression failed (%d): %s\n", gzres, zs->msg); - gzs->failed = TRUE;
+ gzs->failed = TRUE; g_string_free(ret, TRUE); return NULL; } @@ -3222,7 +3222,7 @@ void purple_http_uninit(void) purple_http_re_url_host = NULL; g_regex_unref(purple_http_re_rfc1123); purple_http_re_rfc1123 = NULL; -
+ if (purple_http_hc_list != NULL) g_list_foreach(purple_http_hc_list, purple_http_foreach_conn_cancel, NULL); diff --git a/skypeweb/purple2compat/internal.h b/skypeweb/purple2compat/internal.h index b59053e..ac7628f 100644 --- a/skypeweb/purple2compat/internal.h +++ b/skypeweb/purple2compat/internal.h @@ -1,17 +1,17 @@ -
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#ifdef _WIN32
-#include "win32/win32dep.h"
-#endif
-
-#include "../purplecompat.h"
-
-#ifndef N_
-# define N_(a) (a)
-#endif
-
-#ifndef _
-# define _(a) (a)
-#endif
+ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#ifdef _WIN32 +#include "win32/win32dep.h" +#endif + +#include "../purplecompat.h" + +#ifndef N_ +# define N_(a) (a) +#endif + +#ifndef _ +# define _(a) (a) +#endif diff --git a/skypeweb/purple2compat/purple-socket.c b/skypeweb/purple2compat/purple-socket.c index fe64f89..6134d8b 100644 --- a/skypeweb/purple2compat/purple-socket.c +++ b/skypeweb/purple2compat/purple-socket.c @@ -77,10 +77,10 @@ handle_remove(PurpleSocket *ps) PurpleConnection *gc = ps->gc; GSList *l; - l = g_hash_table_lookup(handles, gc);
+ l = g_hash_table_lookup(handles, gc); if (l != NULL) { l = g_slist_remove(l, ps); - g_hash_table_insert(handles, gc, l);
+ g_hash_table_insert(handles, gc, l); } } |