~desrt/bamf/refcount-fix

« back to all changes in this revision

Viewing changes to lib/libbamf/bamf-application.c

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2012-02-27 20:12:37 UTC
  • mfrom: (447.1.3 bamf)
  • Revision ID: tarmac-20120227201237-mcuh2kblsbx5obr5
Making libbamf correctly free items when disposing BamfView and BamfControl, plus some misc cleanups. Fixes: https://bugs.launchpad.net/bugs/942148. Approved by Jason Smith.

Show diffs side-by-side

added added

removed removed

Lines of Context:
259
259
{
260
260
  BamfApplication *self;
261
261
  BamfApplicationPrivate *priv;
262
 
  
 
262
 
263
263
  self = BAMF_APPLICATION (object);
264
264
  priv = self->priv;
265
 
  
 
265
 
266
266
  if (priv->application_type)
267
267
    {
268
268
      g_free (priv->application_type);
269
269
      priv->application_type = NULL;
270
270
    }
271
 
  
 
271
 
272
272
  if (priv->desktop_file)
273
273
    {
274
274
      g_free (priv->desktop_file);
275
275
      priv->desktop_file = NULL;
276
 
    }  
277
 
  
 
276
    }
 
277
 
278
278
  if (priv->proxy)
279
279
    {
280
280
      dbus_g_proxy_disconnect_signal (priv->proxy,