79587844

Date: 2025-04-23 04:44:16
Score: 1.5
Natty:
Report link

No, it cant be used directly in a class declaration like you're trying to do. The error is because g_autoptr uses gccs attribute cleanup which doesn't work properly with class member variables since it's made for automatic variables that go out of scope...

You should use unique_ptr with a custom deleter thing for class members instead it should get rid of the cleanup error

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Alex