~ubuntu-desktop/libindicator/ubuntu

« back to all changes in this revision

Viewing changes to libindicator/indicator-service-manager.c

  • Committer: Ken VanDine
  • Date: 2012-03-30 13:36:28 UTC
  • mfrom: (337.1.95 upstream)
  • Revision ID: ken.vandine@canonical.com-20120330133628-cpq9atlewuxlns2i
* New upstream release.
  * Fix a leaked GError (LP: #965459)
  * Fix memory leak when the proxy's name changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
536
536
{
537
537
        IndicatorServiceManagerPrivate * priv = INDICATOR_SERVICE_MANAGER_GET_PRIVATE(user_data);
538
538
 
539
 
        const gchar * new_name = NULL;
540
 
        const gchar * prev_name = NULL;
 
539
        gchar * new_name = NULL;
 
540
        gchar * prev_name = NULL;
541
541
        g_variant_get(parameters, "(&s&s&s)", NULL, &prev_name, &new_name);
542
542
 
543
543
        if (new_name == NULL || new_name[0] == 0) {
571
571
                }
572
572
        }
573
573
 
 
574
        g_free (new_name);
 
575
        g_free (prev_name);
 
576
 
574
577
        return;
575
578
}
576
579