[gnome-builder] unsaved-file: add autoptr cleanup func



commit 21f0b53bc46d11c01559a3c876b9f94bb90f5f8c
Author: Christian Hergert <christian hergert me>
Date:   Mon Apr 27 14:33:34 2015 -0700

    unsaved-file: add autoptr cleanup func

 libide/ide-unsaved-file.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-unsaved-file.h b/libide/ide-unsaved-file.h
index e4028cc..39f5823 100644
--- a/libide/ide-unsaved-file.h
+++ b/libide/ide-unsaved-file.h
@@ -36,6 +36,8 @@ gboolean        ide_unsaved_file_persist       (IdeUnsavedFile  *self,
                                                 GCancellable    *cancellable,
                                                 GError         **error);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IdeUnsavedFile, ide_unsaved_file_unref)
+
 G_END_DECLS
 
 #endif /* IDE_UNSAVED_FILE_H */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]