Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de91bf7

Browse files
authored
Merge pull request #13366 from meeseeksmachine/auto-backport-of-pr-13365-on-v3.0.x
Backport PR #13365 on branch v3.0.x (Fix gcc warning)
2 parents d316c74 + d05799e commit de91bf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_tkagg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static int PyAggImagePhoto(ClientData clientdata, Tcl_Interp *interp, int
114114
try {
115115
destbuffer = new agg::int8u[deststride * destheight];
116116
}
117-
catch (std::bad_alloc) {
117+
catch (const std::bad_alloc &) {
118118
TCL_APPEND_RESULT(interp, "could not allocate memory", (char *)NULL);
119119
return TCL_ERROR;
120120
}

0 commit comments

Comments
 (0)