Skip to content

Commit 4e34d92

Browse files
swickGeorgesStavracas
authored andcommitted
notification: Getting a vardict with g_variant_get is owning
Use an autoptr to prevent it from leaking.
1 parent 8728125 commit 4e34d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libportal/notification.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ parse_notification (GVariant *notification,
479479
const char *id;
480480
const char *key;
481481
GVariant *value = NULL;
482-
GVariant *properties = NULL;
482+
g_autoptr(GVariant) properties = NULL;
483483
ParserData *data;
484484
g_autoptr(GTask) task;
485485
const char *supported_properties_v1[] = {

0 commit comments

Comments
 (0)