devicemonitor: Stop using g_clear_pointer()

We dont't want to depend on GLib 2.34 for now.
1 file changed