DebugAnalyzer.cpp: Fix catch of polymorphic exception by value

Signed-off-by: Jaroslaw Pelczar <[email protected]>
Change-Id: I580dafec7fa0ab038b394f50a5a5131b86711cde
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1761
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Jaroslaw Pelczar
2019-08-30 14:02:35 +00:00
committed by waddlesplash
parent 7e66a28740
commit 8965d4ab78
+1 -1
View File
@@ -79,7 +79,7 @@ private:
MainWindow* window;
try {
window = new MainWindow(dataSource);
} catch (std::bad_alloc) {
} catch (std::bad_alloc&) {
fprintf(stderr, "DebugAnalyzer::_CreateWindow(): Out of memory!\n");
return B_NO_MEMORY;
}