~fboucault/lightdm/crossbuild_fixes

« back to all changes in this revision

Viewing changes to src/session.c

  • Committer: Robert Ancell
  • Date: 2011-10-07 22:56:04 UTC
  • mfrom: (1255.1.4 lightdm)
  • Revision ID: robert.ancell@canonical.com-20111007225604-6l0gr4zf108tdelf
Fix reference counting issue in ConsoleKit code

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
    g_return_if_fail (session != NULL);
188
188
    g_return_if_fail (name != NULL);
189
189
 
190
 
    g_hash_table_insert (session->priv->console_kit_parameters, g_strdup (name), value);
 
190
    g_hash_table_insert (session->priv->console_kit_parameters,
 
191
                         g_strdup (name), g_variant_ref_sink (value));
191
192
}
192
193
 
193
194
const gchar *