mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-26 10:58:53 +02:00
gio-tool: Various memory leak fixes
https://bugzilla.gnome.org/show_bug.cgi?id=776169
This commit is contained in:
@@ -176,12 +176,14 @@ add_watch (const gchar *cmdline,
|
||||
g_signal_connect (monitor, "changed", G_CALLBACK (watch_callback), g_strdup (cmdline));
|
||||
|
||||
monitor = NULL; /* leak */
|
||||
g_object_unref (file);
|
||||
|
||||
return TRUE;
|
||||
|
||||
err:
|
||||
print_file_error (file, error->message);
|
||||
g_error_free (error);
|
||||
g_object_unref (file);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user