Skip to content

Commit b920799

Browse files
committed
Fix leak in postgres provider loadStyle
1 parent 8ce519d commit b920799

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/providers/postgres/qgspostgresprovider.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -4726,6 +4726,7 @@ QGISEXTERN QString loadStyle( const QString &uri, QString &errCause )
47264726

47274727
if ( !tableExists( *conn, QStringLiteral( "layer_styles" ) ) )
47284728
{
4729+
conn->unref();
47294730
return QLatin1String( "" );
47304731
}
47314732

0 commit comments

Comments
 (0)