~ubuntu-branches/ubuntu/precise/seahorse/precise-proposed

« back to all changes in this revision

Viewing changes to libseahorse/seahorse-context.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-04-11 16:06:48 UTC
  • Revision ID: package-import@ubuntu.com-20120411160648-sw4j0gg17cngc3hy
Tags: 3.2.2-0ubuntu2
* debian/patches/02_broken_search_filter.patch:
  - Fix broken search filter (LP: #978600)
* debian/patches/03_broken_search.patch:
  - Fix broken search (LP: #925474)
* debian/patches/99_ltmain_as-needed.patch:
  - Dropped as it conflicts with dh-autoreconf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1220
1220
        /* Get a list of all selected key servers */
1221
1221
        names = g_settings_get_strv (self->pv->seahorse_settings, "last-search-servers");
1222
1222
        if (names != NULL && names[0] != NULL) {
1223
 
                servers = g_hash_table_new (g_str_hash, g_str_equal);
 
1223
                servers = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
1224
1224
                for (i = 0; names[i] != NULL; i++)
1225
 
                        g_hash_table_insert (servers, names[i], GINT_TO_POINTER (TRUE));
1226
 
                g_strfreev (names);
 
1225
                        g_hash_table_insert (servers, g_strdup (names[i]), GINT_TO_POINTER (TRUE));
1227
1226
        }
 
1227
        g_strfreev (names);
1228
1228
 
1229
1229
        res = g_simple_async_result_new (G_OBJECT (self), callback, user_data,
1230
1230
                                         seahorse_context_search_remote_async);
1255
1255
                closure->num_searches++;
1256
1256
        }
1257
1257
 
 
1258
        if (servers)
 
1259
                g_hash_table_unref (servers);
 
1260
 
1258
1261
        if (closure->num_searches == 0)
1259
1262
                g_simple_async_result_complete_in_idle (res);
1260
1263