Skip to content

Commit

Permalink
Fix leak in postgres provider loadStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 26, 2018
1 parent 8ce519d commit b920799
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -4726,6 +4726,7 @@ QGISEXTERN QString loadStyle( const QString &uri, QString &errCause )

if ( !tableExists( *conn, QStringLiteral( "layer_styles" ) ) )
{
conn->unref();
return QLatin1String( "" );
}

Expand Down

0 comments on commit b920799

Please sign in to comment.