Browse Source

UI: Reserve correct number of elements in vector

Richard Stanway 5 years ago
parent
commit
bc7946f8a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      UI/window-basic-main.cpp

+ 1 - 1
UI/window-basic-main.cpp

@@ -1420,7 +1420,7 @@ void OBSBasic::InitOBSCallbacks()
 {
 	ProfileScope("OBSBasic::InitOBSCallbacks");
 
-	signalHandlers.reserve(signalHandlers.size() + 6);
+	signalHandlers.reserve(signalHandlers.size() + 7);
 	signalHandlers.emplace_back(obs_get_signal_handler(), "source_create",
 				    OBSBasic::SourceCreated, this);
 	signalHandlers.emplace_back(obs_get_signal_handler(), "source_remove",