~hui.wang/unity-settings-daemon/unity-settings-daemon

« back to all changes in this revision

Viewing changes to plugins/cursor/gsd-cursor-manager.c

  • Committer: CI bot
  • Author(s): Lars Uebernickel
  • Date: 2014-10-14 15:25:48 UTC
  • mfrom: (4054.1.7 trunk)
  • Revision ID: ps-jenkins@lists.canonical.com-20141014152548-pyeuwvxln09vgcxu
Idle monitor: fix ref counting bugs Fixes: 1380278
Approved by: Iain Lane, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
        /* Make sure that all the other devices are watched
148
148
         * (but not the one we just stopped monitoring */
149
149
        add_all_devices (manager, device, NULL);
150
 
 
151
 
        g_object_unref (device);
152
150
}
153
151
 
154
152
static gboolean
179
177
        }
180
178
        g_hash_table_insert (manager->priv->monitors,
181
179
                             device,
182
 
                             monitor);
 
180
                             g_object_ref (monitor));
183
181
        gsd_idle_monitor_add_user_active_watch (monitor,
184
182
                                                monitor_became_active,
185
183
                                                manager,