diff options
-rw-r--r-- | facebook/facebook-http.c | 4 | ||||
-rw-r--r-- | facebook/facebook-mqtt.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/facebook/facebook-http.c b/facebook/facebook-http.c index cf32b25..988a3b2 100644 --- a/facebook/facebook-http.c +++ b/facebook/facebook-http.c @@ -594,11 +594,11 @@ fb_http_values_parse(FbHttpValues *values, const gchar *data, gboolean isurl) if (isurl) { data = strchr(data, '?'); - if (data++ == NULL) { + if (data == NULL) { return; } - tail = strchr(data, '#'); + tail = strchr(++data, '#'); if (tail != NULL) { data = g_strndup(data, tail - data); diff --git a/facebook/facebook-mqtt.c b/facebook/facebook-mqtt.c index 07d0bf0..fbb2473 100644 --- a/facebook/facebook-mqtt.c +++ b/facebook/facebook-mqtt.c @@ -449,6 +449,7 @@ fb_mqtt_read(FbMqtt *mqtt, FbMqttMessage *msg) } if (!fb_mqtt_message_read_mid(msg, &mid)) { + g_free(str); break; } |