]> sigrok.org Git - sigrok-cli.git/commitdiff
Move sr_exit() in main() to correctly mirror order of initialization
authorPeter Stuge <redacted>
Sun, 21 Oct 2012 18:55:35 +0000 (20:55 +0200)
committerPeter Stuge <redacted>
Sun, 21 Oct 2012 18:55:35 +0000 (20:55 +0200)
sigrok-cli.c

index d1544ac5867960f98bc2ccc791dad243918fed7b..805e2199691de50b6c7b20761ef20d91bcd935fa 100644 (file)
@@ -1535,8 +1535,8 @@ int main(int argc, char **argv)
        if (opt_pds)
                srd_exit();
 
-       g_option_context_free(context);
        sr_exit();
+       g_option_context_free(context);
 
        return 0;
 }