[gnome-photos/wip/rishi/application-use-g-auto: 1/2] application: Don't leak the TrackerSparqlCursor
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/application-use-g-auto: 1/2] application: Don't leak the TrackerSparqlCursor
- Date: Tue, 30 Mar 2021 23:19:32 +0000 (UTC)
commit a9b40ba0c3d52bee767a119d833610cb85c589bb
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Mar 31 01:18:09 2021 +0200
application: Don't leak the TrackerSparqlCursor
src/photos-application.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index ec5f0629..d46c574e 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -1129,6 +1129,7 @@ photos_application_import_single_item (GObject *source_object, GAsyncResult *res
photos_application_import_copy_next_file (self, g_steal_pointer (&data));
out:
+ g_clear_object (&cursor);
g_application_unmark_busy (G_APPLICATION (self));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]