Removed line that caused a soup waring.
authorDaniel Carl <danielcarl@gmx.de>
Sun, 11 Nov 2012 13:26:39 +0000 (14:26 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sun, 11 Nov 2012 13:26:48 +0000 (14:26 +0100)
It seems that the removing of the soup feature 'soup_cookie_get_type' isn't
required.

src/completion.c
src/main.c

index 166e173..4565507 100644 (file)
@@ -158,12 +158,12 @@ static GList* completion_update(GList* completion, GList* active, gboolean back)
             gtk_widget_hide(c->event);
         } else if (position == 1) {
             int i = 0;
-            for (GList *l = g_list_first(completion); l && i<max; l=l->next, i++) {
+            for (GList *l = g_list_first(completion); l && i < max; l = l->next, i++) {
                 gtk_widget_hide(((Completion*)l->data)->event);
             }
             gtk_widget_show(vp.gui.compbox);
             i = 0;
-            for (GList *l = g_list_last(completion); l && i<max ;l=l->prev, i++) {
+            for (GList *l = g_list_last(completion); l && i < max; l = l->prev, i++) {
                 c = l->data;
                 gtk_widget_show_all(c->event);
             }
@@ -179,12 +179,12 @@ static GList* completion_update(GList* completion, GList* active, gboolean back)
             gtk_widget_show_all(c->event);
         } else if (position == items || position  == 1) {
             int i = 0;
-            for (GList *l = g_list_last(completion); l && i<max; l=l->prev) {
+            for (GList *l = g_list_last(completion); l && i < max; l = l->prev) {
                 gtk_widget_hide(((Completion*)l->data)->event);
             }
             gtk_widget_show(vp.gui.compbox);
             i = 0;
-            for (GList *l = g_list_first(completion); l && i<max ;l=l->next, i++) {
+            for (GList *l = g_list_first(completion); l && i < max; l = l->next, i++) {
                 gtk_widget_show_all(((Completion*)l->data)->event);
             }
         }
index 02dfc09..9651963 100644 (file)
@@ -248,6 +248,7 @@ void vp_clean_up(void)
     command_cleanup();
     setting_cleanup();
     keybind_cleanup();
+    completion_clean();
 }
 
 static gboolean vp_hide_message(void)
@@ -444,7 +445,6 @@ static void vp_init_gui(void)
     /* init soup session */
 #ifdef FEATURE_COOKIE
     vp.net.soup_session = webkit_get_default_session();
-    soup_session_remove_feature_by_type(vp.net.soup_session, soup_cookie_get_type());
     soup_session_remove_feature_by_type(vp.net.soup_session, soup_cookie_jar_get_type());
 #endif