~ubuntu-branches/ubuntu/precise/telepathy-glib/precise-201202222208

« back to all changes in this revision

Viewing changes to telepathy-glib/simple-password-manager.c

  • Committer: Ken VanDine
  • Date: 2012-02-22 18:08:37 UTC
  • mfrom: (1.6.39)
  • Revision ID: ken.vandine@canonical.com-20120222180837-02um6fex0eg073lf
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 * Since: 0.13.8
67
67
 */
68
68
 
 
69
#include "config.h"
 
70
 
69
71
#include "telepathy-glib/simple-password-manager.h"
70
72
 
71
73
#include <telepathy-glib/channel-manager.h>
306
308
}
307
309
 
308
310
static void
 
311
free_gstring (gpointer p)
 
312
{
 
313
  g_string_free (p, TRUE);
 
314
}
 
315
 
 
316
static void
309
317
tp_simple_password_manager_channel_finished_cb (
310
318
    TpBasePasswordChannel *channel,
311
319
    const GString *str,
326
334
  else
327
335
    {
328
336
      g_simple_async_result_set_op_res_gpointer (
329
 
          result, (gpointer) str, NULL);
 
337
          result, g_boxed_copy (G_TYPE_GSTRING, str), free_gstring);
330
338
    }
331
339
 
332
340
  g_simple_async_result_complete (result);