aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-05-01 14:29:52 +0200
committerAnders Broman <a.broman58@gmail.com>2014-05-01 13:16:13 +0000
commit523fbe252effac044a5556cda20cc9ff1dea56fd (patch)
treea9e16940c41727f4f06d8c4ae06adf834b08ea90 /ui
parent583a47c06e2a27676a7b2e49af2ee89ea0f360c5 (diff)
Unreachable code in ui/gtk/main.c
Unreachable code due to conflicting defines: checking for GTKOSXAPPLICATION inside _WIN32 Found by Edwin Closed-bug: 10065 Change-Id: I074fa14069e859b3fc4b7f50c443a67e7f0e954b Reviewed-on: https://code.wireshark.org/review/1456 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c
index 76bdd72314..56264fb305 100644
--- a/ui/gtk/main.c
+++ b/ui/gtk/main.c
@@ -3257,14 +3257,14 @@ main(int argc, char *argv[])
AirPDcapDestroyContext(&airpdcap_ctx);
-#ifdef _WIN32
- /* hide the (unresponsive) main window, while asking the user to close the console window */
- gtk_widget_hide(top_level);
-
#ifdef HAVE_GTKOSXAPPLICATION
g_object_unref(theApp);
#endif
+#ifdef _WIN32
+ /* hide the (unresponsive) main window, while asking the user to close the console window */
+ gtk_widget_hide(top_level);
+
software_update_cleanup();
/* Shutdown windows sockets */