Skip to content

Commit

Permalink
Fix leak in postgres provider loadStyle
Browse files Browse the repository at this point in the history
(cherry-picked from b92079)
  • Loading branch information
nyalldawson committed Feb 26, 2018
1 parent d6cf2e5 commit 19aebf8
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 19aebf8

Please sign in to comment.