mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:33:24 +00:00
3ee41328f9
Simpler memory management. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
12 lines
350 B
C
12 lines
350 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
// Convenience classes defining owning pointers to C-objects that
|
|
// automatically clean up the objects if the pointers go out of
|
|
// scope. Based on unique_ptr<>.
|
|
// In the future, we should replace these by real destructors.
|
|
#ifndef OWNING_PTR_H
|
|
#define OWNING_PTR_H
|
|
|
|
#include <memory>
|
|
#include <cstdlib>
|
|
|
|
#endif
|