Fixed memory allocation errors in incognito mode.
authorDaniel Carl <danielcarl@gmx.de>
Thu, 13 Jun 2019 23:09:20 +0000 (01:09 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 13 Jun 2019 23:09:20 +0000 (01:09 +0200)
Fix crash with message "free(): invalid next size (fast)" when a new
instance was spawned.

src/main.c

index 28f17e6..6eb69dd 100644 (file)
@@ -1027,6 +1027,7 @@ static void spawn_new_instance(const char *uri)
 #ifndef FEATURE_NO_XEMBED
         + (vb.embed ? 2 : 0)
 #endif
+        + (vb.incognito ? 1 : 0)
         + (vb.profile ? 2 : 0)
         + (vb.no_maximize ? 1 : 0),
         sizeof(char *)