Skip to content

closing GPSDClient #35

@JordanMcManus

Description

@JordanMcManus

In the client.cpp source file for gpsd_client we see this:

void stop() {
      // gpsmm doesn't have a close method? OK ...
    }

The documentation for libgpsmm reads

libgpsmm is a mere wrapper over libgps. Method names are the same as
the analogue C functions. For a detailed description of the functions
please read libgps(3). open() must be called after class constructor
and before any other method (open() is not inside the constructor since
it may fail, however constructors have no return value). The analogue
of the C function gps_close() is in the destructor.

Do you think that simply delete the gps pointer can solve this or is too naive?

void stop() {
      delete gps;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions